# HG changeset patch # User nemo # Date 1293721085 18000 # Node ID d8eafc8dba38e170d3849172a9c9eedb9dc9aec5 # Parent f9564c66a086c84ff338c79de412fb421d844cf0 avoid uninitialised pointer. thanks to dead.mazayus diff -r f9564c66a086 -r d8eafc8dba38 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Wed Dec 29 22:44:45 2010 -0500 +++ b/hedgewars/uGears.pas Thu Dec 30 09:58:05 2010 -0500 @@ -1857,12 +1857,15 @@ inc(j) end end; - if hh <> nil then Gear:= AddVisualGear(0, 0, vgtSpeechBubble); - if Gear <> nil then + if hh <> nil then begin - Gear^.Hedgehog:= hh; - Gear^.Text:= text; - Gear^.FrameTicks:= x + Gear:= AddVisualGear(0, 0, vgtSpeechBubble); + if Gear <> nil then + begin + Gear^.Hedgehog:= hh; + Gear^.Text:= text; + Gear^.FrameTicks:= x + end end //else ParseCommand('say ' + text, true) end