# HG changeset patch # User nemo # Date 1243194550 0 # Node ID 1c9a8081aef68b8c728904b3441c87f63f8e9f9a # Parent 9a8ccc7bc3d8ac72b00d87bc2b4fa017610ffdb2 unc0rr forgot nil check here too diff -r 9a8ccc7bc3d8 -r 1c9a8081aef6 hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Sun May 24 19:45:20 2009 +0000 +++ b/hedgewars/HHHandlers.inc Sun May 24 19:49:10 2009 +0000 @@ -197,9 +197,12 @@ if not (SpeechText = '') then begin tmpGear:= AddVisualGear(0, 0, vgtSpeechBubble); - tmpGear^.Text:= SpeechText; - tmpGear^.Hedgehog:= Gear^.Hedgehog; - tmpGear^.FrameTicks:= SpeechType; + if tmpGear <> nil then + begin + tmpGear^.Text:= SpeechText; + tmpGear^.Hedgehog:= Gear^.Hedgehog; + tmpGear^.FrameTicks:= SpeechType; + end; SpeechText:= '' end;