missing nil test
authornemo
Tue, 23 Oct 2012 20:15:15 -0400
changeset 7806 c27713b5e052
parent 7805 2a249a4faf5b
child 7807 482b0c751df6
missing nil test
hedgewars/uCommands.pas
--- a/hedgewars/uCommands.pas	Tue Oct 23 16:52:13 2012 -0400
+++ b/hedgewars/uCommands.pas	Tue Oct 23 20:15:15 2012 -0400
@@ -85,7 +85,7 @@
     t: PVariable;
     c: char;
 begin
-isExternalSource:= ExternalSource or CurrentTeam^.ExtDriven;
+isExternalSource:= ExternalSource or ((CurrentTeam <> nil) and CurrentTeam^.ExtDriven);
 //WriteLnToConsole(CmdStr);
 if CmdStr[0]=#0 then
     exit;