1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Use ErrorTitle + ErrorMessage instead of newline

This commit is contained in:
Luke Hobbs
2023-06-03 09:36:05 -04:00
parent 27eec48c16
commit a17ac8a92b

View File

@@ -1087,10 +1087,11 @@ GameActions::Result ScriptEngine::QueryOrExecuteCustomGameAction(const CustomAct
}
return DukToGameActionResult(dukResult);
}
auto action = GameActions::Result();
action.Error = GameActions::Status::Unknown;
action.ErrorTitle = " [Unknown custom action] \n" + customAction.GetPluginName() + ": " + actionz;
action.ErrorTitle = "Unknown custom action";
action.ErrorMessage = customAction.GetPluginName() + ": " + actionz;
return action;
}