mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Fix Format_VA. Rename Format to StdFormat.
author jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1655955994 -0400 committer jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1656516326 -0400 Fixed Format_VA and renamed Format to StdFormat. Both now output to Std::String, while taking the same input as before. Changed functions that use these two to account for this output difference
This commit is contained in:
committed by
Hielke Morsink
parent
55c8a3d775
commit
c0853b56ad
@@ -2146,8 +2146,5 @@ void InteractiveConsole::WriteFormatLine(const char* format, ...)
|
||||
va_start(list, format);
|
||||
auto buffer = String::Format_VA(format, list);
|
||||
va_end(list);
|
||||
|
||||
auto s = std::string(buffer);
|
||||
std::free(buffer);
|
||||
WriteLine(s);
|
||||
WriteLine(buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user