1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Add LOG_ERROR calls

This commit is contained in:
Peter Froud
2024-03-17 00:19:56 -07:00
committed by Gymnasiast
parent d1f740c786
commit 1f698dfc76
19 changed files with 64 additions and 11 deletions

View File

@@ -49,6 +49,7 @@ GameActions::Result StaffSetNameAction::Query() const
{
if (_spriteIndex.ToUnderlying() >= MAX_ENTITIES || _spriteIndex.IsNull())
{
LOG_ERROR("Invalid sprite index %u", _spriteIndex);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_STAFF_ERROR_CANT_NAME_STAFF_MEMBER, STR_NONE);
}