1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Discard empty errors.

This commit is contained in:
ZehMatt
2017-12-10 10:06:59 +01:00
committed by Aaron van Geffen
parent b0f7435e9d
commit 70ee22bbfa

View File

@@ -88,6 +88,10 @@ namespace GameActions
{
result = factory();
}
else
{
log_error("Attempting to create unregistered gameaction: %u\n", id);
}
}
Guard::ArgumentNotNull(result);
return std::unique_ptr<GameAction>(result);
@@ -227,7 +231,8 @@ namespace GameActions
if (result->Error != GA_ERROR::OK &&
!(flags & GAME_COMMAND_FLAG_GHOST) &&
!(flags & GAME_COMMAND_FLAG_5))
!(flags & GAME_COMMAND_FLAG_5) &&
result->ErrorMessage != STR_NONE)
{
// Show the error box
std::copy(result->ErrorMessageArgs.begin(), result->ErrorMessageArgs.end(), gCommonFormatArgs);