hedgewars/uIO.pas
changeset 112 ca5f06017e99
parent 95 1ef5e2c41115
child 154 5667e6f38704
--- a/hedgewars/uIO.pas	Wed Aug 16 11:41:00 2006 +0000
+++ b/hedgewars/uIO.pas	Wed Aug 16 21:35:27 2006 +0000
@@ -204,7 +204,7 @@
              CursorPoint.Y:= extcmd[cmdcurpos].Y + WorldDy;
              end;
         '1'..'5': ParseCommand('timer ' + extcmd[cmdcurpos].cmd);
-        #128..#134: ParseCommand('slot ' + char(byte(extcmd[cmdcurpos].cmd) - 79))
+        #128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(extcmd[cmdcurpos].cmd) - 79))
         end;
    inc(cmdcurpos)
    end;