Skip to content

Commit 5e385e9

Browse files
committed
Fixed crash from scene change under play mode
1 parent 701c4f4 commit 5e385e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/game/src/tools/DevConsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void DevConsole::OnUpdate()
143143
isActive = false;
144144
lastInput = inputText;
145145
inputText = "";
146-
ServiceLocator::GetEditorController()->SetIsHandlingInput(true);
146+
if (isEditorMode) ServiceLocator::GetEditorController()->SetIsHandlingInput(true);
147147
}
148148
}
149149

0 commit comments

Comments
 (0)