1
0
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:
Michał Janiszewski
2017-09-30 22:10:13 +02:00
parent 1dd5d3a3f5
commit 4841e2c6f3

View File

@@ -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;