hedgewars/uCommands.pas
changeset 7806 c27713b5e052
parent 7805 2a249a4faf5b
child 7850 fcbb024090a4
--- 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;