# HG changeset patch # User unc0rr # Date 1250423741 0 # Node ID 0ffdcae7653c12ae95e7b9ab20caf46853eae082 # Parent 3b59f1251ead21bcd7cc367dae668d1e4bd14b51 Check gear for nil in /timer command handler diff -r 3b59f1251ead -r 0ffdcae7653c hedgewars/CCHandlers.inc --- a/hedgewars/CCHandlers.inc Sat Aug 15 09:34:31 2009 +0000 +++ b/hedgewars/CCHandlers.inc Sun Aug 16 11:55:41 2009 +0000 @@ -355,7 +355,9 @@ procedure chTimer(var s: shortstring); begin -if (s[0] <> #1) or (s[1] < '1') or (s[1] > '5') or (CurrentTeam = nil) then exit; +if (s[0] <> #1) or (s[1] < '1') or (s[1] > '5') + or (CurrentTeam = nil) + or (CurrentHedgehog^.Gear = nil) then exit; bShowFinger:= false; if not CurrentTeam^.ExtDriven then SendIPC(s); with CurrentHedgehog^.Gear^ do