Fix crash in InputQueue handling when window object is deleted
This commit is contained in:
@@ -599,7 +599,7 @@ void InputService::Update()
|
||||
for (const auto& e : InputEvents)
|
||||
{
|
||||
auto window = e.Target ? e.Target : defaultWindow;
|
||||
if (!window)
|
||||
if (!window || !WindowsManager::Windows.Contains(window))
|
||||
continue;
|
||||
switch (e.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user