Browse Source

Add the proposed patch to prevent make assignment to the reserved word base.

mingodad 12 years ago
parent
commit
49b7966419
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SquiLu/squirrel/sqcompiler.cpp

+ 1 - 0
SquiLu/squirrel/sqcompiler.cpp

@@ -528,6 +528,7 @@ public:
 			SQInteger pos = _es.epos;
 
 			if(ds == EXPR) Error(_SC("can't assign expression"));
+			else if(ds == BASE) Error(_SC("'base' cannot be modified"));
 			Lex(); Expression();
 
 			switch(op){