hedgewars/uTeams.pas
changeset 1678 c8deca7b1e3c
parent 1669 b709e061577e
child 1687 a73c8cda1ed1
--- a/hedgewars/uTeams.pas	Wed Jan 14 21:59:11 2009 +0000
+++ b/hedgewars/uTeams.pas	Wed Jan 14 22:53:22 2009 +0000
@@ -80,6 +80,7 @@
 			end;
 
 var CurrentTeam: PTeam = nil;
+	PreviousTeam: PTeam = nil;
 	CurrentHedgehog: PHedgehog = nil;
 	TeamsArray: array[0..Pred(cMaxTeams)] of PTeam;
 	TeamsCount: Longword = 0;
@@ -155,6 +156,7 @@
 FreeActionsList;
 TargetPoint.X:= NoPointX;
 TryDo(CurrentTeam <> nil, 'nil Team', true);
+PreviousTeam:= CurrentTeam;
 
 with CurrentHedgehog^ do
 	if Gear <> nil then