hedgewars/uGears.pas
changeset 10490 b30b8d39d662
parent 10395 0d20f6fc038a
child 10494 0eb97cf4c78e
--- a/hedgewars/uGears.pas	Tue Nov 11 21:55:38 2014 +0100
+++ b/hedgewars/uGears.pas	Tue Nov 11 23:57:46 2014 +0300
@@ -856,6 +856,8 @@
         t:= byte(s[2]);  // team
         if Length(s) > 2 then
             h:= byte(s[3])  // target hog
+        else
+            h:= 0
         end;
     // allow targetting a hog by specifying a number as the first portion of the text
     if (x < 4) and (h > byte('0')) and (h < byte('9')) then