Correct a format placeholder type

console-destruction
Sven Eberhardt 2016-08-28 10:17:36 -04:00
parent 0acf8a36f9
commit 5a2e96e25b
1 changed files with 1 additions and 1 deletions

View File

@ -1066,7 +1066,7 @@ void C4ConsoleGUIState::UpdateActionObject(C4Object *new_action_object)
StdStrBuf script_command_cpy(script_command->GetData(), true);
C4Player *local_player = ::Players.GetLocalByIndex(0);
int32_t local_player_number = local_player ? local_player->Number : NO_OWNER;
script_command_cpy.Replace("%player%", FormatString("%d", local_player_number).getData());
script_command_cpy.Replace("%player%", FormatString("%d", (int)local_player_number).getData());
::Console.EditCursor.EMControl(CID_Script, new C4ControlScript(script_command_cpy.getData(), object_number, false, select_returned_object));
});
}