Throw assert only in debug builds for missing game actions.

This commit is contained in:
Matt 2019-02-07 18:23:58 +01:00
parent 3be6137fde
commit ee00143f3a
1 changed files with 2 additions and 0 deletions

View File

@ -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<GameAction>(result);
}