diff options
author | rubidium <rubidium@openttd.org> | 2014-09-16 20:09:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-16 20:09:20 +0000 |
commit | 74ceffd3c56838c60191ce2c3e9f3391c29d2619 (patch) | |
tree | 3bcd26297fabb5eb5bbcf6e13c61aa7254218c34 | |
parent | 9f249cfff9422c71d65df65f8adc8218eb47bda3 (diff) | |
download | openttd-74ceffd3c56838c60191ce2c3e9f3391c29d2619.tar.xz |
(svn r26837) -Fix [Squirrel]: remove some pointless assignments
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqfuncstate.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp b/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp index ec538713a..47c553abc 100644 --- a/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp +++ b/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp @@ -419,7 +419,6 @@ void SQFuncState::AddInstruction(SQInstruction &i) break; case _OP_GET: if( pi.op == _OP_LOAD && pi._arg0 == i._arg2 && (!IsLocal(pi._arg0))){ - pi._arg1 = pi._arg1; pi._arg2 = (unsigned char)i._arg1; pi.op = _OP_GETK; pi._arg0 = i._arg0; @@ -431,7 +430,6 @@ void SQFuncState::AddInstruction(SQInstruction &i) if( pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){ pi.op = _OP_PREPCALLK; pi._arg0 = i._arg0; - pi._arg1 = pi._arg1; pi._arg2 = i._arg2; pi._arg3 = i._arg3; return; @@ -441,7 +439,6 @@ void SQFuncState::AddInstruction(SQInstruction &i) if(pi.op == _OP_LOAD && pi._arg0 == i._arg1 && (!IsLocal(pi._arg0))){ pi.op = _OP_APPENDARRAY; pi._arg0 = i._arg0; - pi._arg1 = pi._arg1; pi._arg2 = MAX_FUNC_STACKSIZE; pi._arg3 = MAX_FUNC_STACKSIZE; return; @@ -476,7 +473,6 @@ void SQFuncState::AddInstruction(SQInstruction &i) { pi.op = i.op; pi._arg0 = i._arg0; - pi._arg1 = pi._arg1; pi._arg2 = i._arg2; pi._arg3 = MAX_FUNC_STACKSIZE; return; |