mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 01:42:19 -05:00
Fixes crash on Switch/WiiU when attempting to show the ImGui menubar. (#1534)
* Fixes crash on Switch/WiiU when attempting to show the ImGui menubar. * Fixes weird indentaion on GitHub?
This commit is contained in:
parent
d2153d601c
commit
e1b83b6eb4
@ -78,9 +78,11 @@ namespace Ship {
|
|||||||
padToBuffer.gyro_y = getGyroY(virtualSlot);
|
padToBuffer.gyro_y = getGyroY(virtualSlot);
|
||||||
|
|
||||||
padBuffer.push_front(padToBuffer);
|
padBuffer.push_front(padToBuffer);
|
||||||
*pad = padBuffer[std::min(padBuffer.size(), (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
|
if (pad != nullptr) {
|
||||||
|
*pad = padBuffer[std::min(padBuffer.size(), (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
|
||||||
|
}
|
||||||
|
|
||||||
while (padBuffer.size() > 6) {
|
while (padBuffer.size() > 6) {
|
||||||
padBuffer.pop_back();
|
padBuffer.pop_back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user