From 4841e2c6f372e1e4a2f8dc4d892446a9a7f1847e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 30 Sep 2017 22:10:13 +0200 Subject: [PATCH] Improve verifying validty of new game action --- src/openrct2/actions/GameAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index aaed434157..b43bc6543b 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -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;