diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:13 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:13 +0100 |
commit | b12eef1d56575206538abed426a296fefe22e90e (patch) | |
tree | a029f5ec513ec487d477d791e21f90ae1287965a /src/control | |
parent | Fix debug menu memory leak (diff) | |
download | re3-b12eef1d56575206538abed426a296fefe22e90e.tar re3-b12eef1d56575206538abed426a296fefe22e90e.tar.gz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.bz2 re3-b12eef1d56575206538abed426a296fefe22e90e.tar.lz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.xz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.zst re3-b12eef1d56575206538abed426a296fefe22e90e.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Script4.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index 986e82f8..3c794859 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -2012,10 +2012,10 @@ int8 CRunningScript::ProcessCommands900To999(int32 command) case COMMAND_PRINT_HELP: { if (CCamera::m_bUseMouse3rdPerson && ( - strncmp((char*)&CTheScripts::ScriptSpace[m_nIp], "HELP15", 7) == 0 || - strncmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_2A", 7) == 0 || - strncmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_3A", 7) == 0 || - strncmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_4A", 7) == 0)) { + strcmp((char*)&CTheScripts::ScriptSpace[m_nIp], "HELP15") == 0 || + strcmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_2A") == 0 || + strcmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_3A") == 0 || + strcmp((char*)&CTheScripts::ScriptSpace[m_nIp], "GUN_4A") == 0)) { m_nIp += KEY_LENGTH_IN_SCRIPT; return 0; } |