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
1 changed files with 1 additions and 1 deletions

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;