mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
Improve verifying validty of new game action
This commit is contained in:
@@ -43,7 +43,7 @@ namespace GameActions
|
||||
|
||||
GameActionFactory Register(uint32 id, GameActionFactory factory)
|
||||
{
|
||||
Guard::Assert(id < sizeof(_actions));
|
||||
Guard::Assert(id < Util::CountOf(_actions));
|
||||
Guard::ArgumentNotNull(factory);
|
||||
|
||||
_actions[id] = factory;
|
||||
|
||||
Reference in New Issue
Block a user