This commit is contained in:
Nikolay Korolev 2021-08-26 00:38:00 +03:00
parent 9187873396
commit cc9398df14
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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: