mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Throw assert only in debug builds for missing game actions.
This commit is contained in:
@@ -90,7 +90,9 @@ namespace GameActions
|
|||||||
result = factory();
|
result = factory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
Guard::ArgumentNotNull(result, "Attempting to create unregistered gameaction: %u", id);
|
Guard::ArgumentNotNull(result, "Attempting to create unregistered gameaction: %u", id);
|
||||||
|
#endif
|
||||||
return std::unique_ptr<GameAction>(result);
|
return std::unique_ptr<GameAction>(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user