From cc9398df14fe66033f474494395e83287e540800 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Thu, 26 Aug 2021 00:38:00 +0300 Subject: cleanup --- src/control/OnscreenTimer.cpp | 2 +- src/control/Script7.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/control') diff --git a/src/control/OnscreenTimer.cpp b/src/control/OnscreenTimer.cpp index 002efd98..fc56f7cb 100644 --- a/src/control/OnscreenTimer.cpp +++ b/src/control/OnscreenTimer.cpp @@ -221,7 +221,7 @@ COnscreenCounterEntry::ProcessForDisplayCounter() if (m_bAddDollarPrefix) sprintf(prefix, "$"); #ifdef FIX_BUGS - char suffix[3] = { '\0' }; + char suffix[4] = { '\0' }; #else char suffix[2] = { '\0' }; #endif diff --git a/src/control/Script7.cpp b/src/control/Script7.cpp index a06c43d3..ee197783 100644 --- a/src/control/Script7.cpp +++ b/src/control/Script7.cpp @@ -570,7 +570,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command) wchar* text = TheText.Get((char*)&CTheScripts::ScriptSpace[m_nIp]); // ??? strncpy(onscreen_str, (char*)&CTheScripts::ScriptSpace[m_nIp], KEY_LENGTH_IN_SCRIPT); m_nIp += KEY_LENGTH_IN_SCRIPT; - CUserDisplay::OnscnTimer.AddCounter(var, GET_INTEGER_PARAM(0), onscreen_str, GET_INTEGER_PARAM(1) - 1, -1, nil, 0); // TODO: last params are -1, nil, 0 + CUserDisplay::OnscnTimer.AddCounter(var, GET_INTEGER_PARAM(0), onscreen_str, GET_INTEGER_PARAM(1) - 1, -1, nil, 0); return 0; } case COMMAND_ADD_SET_PIECE: -- cgit v1.2.3