Browse Source

script: don't read past the end

0.10
Cory Fields 10 years ago
parent
commit
be6d87aa60
  1. 1
      src/script/interpreter.cpp

1
src/script/interpreter.cpp

@ -839,6 +839,7 @@ public: @@ -839,6 +839,7 @@ public:
itBegin = it;
}
}
if (itBegin != scriptCode.end())
s.write((char*)&itBegin[0], it-itBegin);
}

Loading…
Cancel
Save