diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index 3d523e06f9..efcdfd207b 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -90,7 +90,9 @@ namespace GameActions result = factory(); } } +#ifdef _DEBUG Guard::ArgumentNotNull(result, "Attempting to create unregistered gameaction: %u", id); +#endif return std::unique_ptr(result); }