diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 21:15:50 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 21:16:38 +0100 |
commit | de32fbe75ebeb0d9a880514daa17ffaf11e5faf0 (patch) | |
tree | 779bb44c7aeaa42eb5bf5f301639dad0fee90927 /src | |
parent | use ARRAY_SIZE (diff) | |
download | re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar.gz re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar.bz2 re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar.lz re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar.xz re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.tar.zst re3-de32fbe75ebeb0d9a880514daa17ffaf11e5faf0.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/control/Script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 642ad65b..b9097b9f 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -2504,7 +2504,9 @@ int8 CRunningScript::ProcessOneCommand() uint32 ip = m_nIp; if (command < ARRAY_SIZE(commands)) { script_assert(commands[command].id == command); + m_nIp -= 2; sprintf(commandInfo, m_nIp >= SIZE_MAIN_SCRIPT ? "M<%5d> " : "<%6d> ", m_nIp >= SIZE_MAIN_SCRIPT ? m_nIp - SIZE_MAIN_SCRIPT : m_nIp); + m_nIp += 2; if (m_bNotFlag) strcat(commandInfo, "NOT "); if (commands[command].position == -1) |