Commit 3558aac8 authored by Benjamin Albsmeier's avatar Benjamin Albsmeier
Browse files

fixed a crash if a gamepad was removed

parent 9aee5b47
Pipeline #2296 failed with stage
in 29 minutes and 44 seconds
......@@ -181,7 +181,9 @@ namespace mirrage::input {
_pointer_world_pos[i] = _screen_to_world_coords(_pointer_screen_pos[i]);
for(auto& gp : _gamepads)
gp->update(dt);
if(gp){
gp->update(dt);
}
_mailbox.update_subscriptions();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment