mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Add LOG_ERROR calls
This commit is contained in:
@@ -99,6 +99,7 @@ GameActions::Result FootpathAdditionPlaceAction::Query() const
|
||||
auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry<PathAdditionEntry>(_entryIndex);
|
||||
if (pathAdditionEntry == nullptr)
|
||||
{
|
||||
LOG_ERROR("Unknown footpath addition entry for entryIndex %d", _entryIndex);
|
||||
return GameActions::Result(
|
||||
GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE);
|
||||
}
|
||||
@@ -167,6 +168,7 @@ GameActions::Result FootpathAdditionPlaceAction::Execute() const
|
||||
auto* pathAdditionEntry = OpenRCT2::ObjectManager::GetObjectEntry<PathAdditionEntry>(_entryIndex);
|
||||
if (pathAdditionEntry == nullptr)
|
||||
{
|
||||
LOG_ERROR("Unknown footpath addition entry for entryIndex %d", _entryIndex);
|
||||
return GameActions::Result(
|
||||
GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user