diff options
author | yexo <yexo@openttd.org> | 2011-02-11 06:18:39 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-02-11 06:18:39 +0000 |
commit | 5f18d6d8286308e236f58b8c14aba449f8f4ef0f (patch) | |
tree | 5217d48f63643ef75b364a22e541ab3026d77163 | |
parent | 66a8c324dbff3b387ae8167147a86e199a4e3661 (diff) | |
download | openttd-5f18d6d8286308e236f58b8c14aba449f8f4ef0f.tar.xz |
(svn r22055) -Fix [FS#4490]: [Squirrel] some invalid squirrel code caused the squirrel compiler to crash
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqcompiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp index 6c07d8103..b26ab8f6f 100644 --- a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp +++ b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp @@ -597,6 +597,7 @@ public: } SQInteger Factor() { + _exst._deref = DEREF_NO_DEREF; switch(_token) { case TK_STRING_LITERAL: { |