diff options
author | Gregory Montoir | 2007-11-04 03:16:56 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-11-04 03:16:56 +0000 |
commit | 7cf5a578275f97f490c85e25409562718e23482f (patch) | |
tree | 9247afb3a5f1d72995f187a9e0dcfb43ef37f58e | |
parent | 9f84af06d62715d07bffa05967205d01d5a3239e (diff) | |
download | scummvm-rg350-7cf5a578275f97f490c85e25409562718e23482f.tar.gz scummvm-rg350-7cf5a578275f97f490c85e25409562718e23482f.tar.bz2 scummvm-rg350-7cf5a578275f97f490c85e25409562718e23482f.zip |
fix buffer overflow (globalVars is int16 -> index/=2)
svn-id: r29402
-rw-r--r-- | engines/cine/main_loop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index f52c669abc..1f1622253e 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -228,8 +228,8 @@ void CineEngine::mainLoop(int bootScriptIdx) { playerCommand = -1; strcpy(commandBuffer, ""); - globalVars[0x1F2] = 0; - globalVars[0x1F4] = 0; + globalVars[VAR_MOUSE_X_POS] = 0; + globalVars[VAR_MOUSE_Y_POS] = 0; for (i = 0; i < 16; i++) { c_palette[i] = 0; |