Merge pull request #5514 from aws-lumberyard-dev/Atom/guthadam/add_null_check_to_emfx_systemcomponent

Added a null pointer check to EMFX system component
This commit is contained in:
Guthrie Adams
2021-11-10 17:12:01 -06:00
committed by GitHub
@@ -626,7 +626,7 @@ namespace EMotionFX
// Check if we are in game mode.
IEditor* editor = nullptr;
AzToolsFramework::EditorRequestBus::BroadcastResult(editor, &AzToolsFramework::EditorRequests::GetEditor);
inGameMode = editor->IsInGameMode();
inGameMode = !editor || editor->IsInGameMode();
#endif
// Apply the motion extraction deltas to the character controller / entity transform for all entities.