From 246f174528ff106f2bb6f32141b96635a71c282b Mon Sep 17 00:00:00 2001 From: Guthrie Adams Date: Wed, 10 Nov 2021 16:02:12 -0600 Subject: [PATCH] inverted game mode ptr check Signed-off-by: Guthrie Adams --- .../Code/Source/Integration/System/SystemComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gems/EMotionFX/Code/Source/Integration/System/SystemComponent.cpp b/Gems/EMotionFX/Code/Source/Integration/System/SystemComponent.cpp index 3535bcd942..b7fa03998e 100644 --- a/Gems/EMotionFX/Code/Source/Integration/System/SystemComponent.cpp +++ b/Gems/EMotionFX/Code/Source/Integration/System/SystemComponent.cpp @@ -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 && editor->IsInGameMode(); + inGameMode = !editor || editor->IsInGameMode(); #endif // Apply the motion extraction deltas to the character controller / entity transform for all entities.