Input: Fix crash when shutting down without initializing input

This commit is contained in:
TellowKrinkle authored and Ty committed 2025-06-04 20:25:32 -04:00
1 parent 1a5731dd8e
commit da4fcffef4
1 file changed
+1 -1
+1 -1
View File
@@ -1615,7 +1615,7 @@ void InputManager::CloseSources()
{
for (u32 i = FIRST_EXTERNAL_INPUT_SOURCE; i < LAST_EXTERNAL_INPUT_SOURCE; i++)
{
if (s_input_sources[i]->IsInitialized())
if (s_input_sources[i] && s_input_sources[i]->IsInitialized())
{
s_input_sources[i]->Shutdown();
}