hedgewars/uGame.pas
changeset 602 f7628ebfccde
parent 519 981df6f6e2a9
child 626 a30171dbcd19
--- a/hedgewars/uGame.pas	Thu Sep 20 20:00:10 2007 +0000
+++ b/hedgewars/uGame.pas	Fri Sep 21 18:55:44 2007 +0000
@@ -52,8 +52,7 @@
     begin
     if not CurrentTeam^.ExtDriven then
        begin
-       with CurrentTeam^ do
-           if Hedgehogs[CurrHedgehog].BotLevel <> 0 then ProcessBot;
+       if CurrentHedgehog^.BotLevel <> 0 then ProcessBot;
        ProcessGears
        end else
        begin