summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-02-11 06:18:39 +0000
committeryexo <yexo@openttd.org>2011-02-11 06:18:39 +0000
commit5f18d6d8286308e236f58b8c14aba449f8f4ef0f (patch)
tree5217d48f63643ef75b364a22e541ab3026d77163
parent66a8c324dbff3b387ae8167147a86e199a4e3661 (diff)
downloadopenttd-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.cpp1
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: {