mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Fix warning
This commit is contained in:
parent
b007b8e104
commit
89d9ec0a84
2 changed files with 3 additions and 3 deletions
|
@ -1383,7 +1383,7 @@ void MainWindow::SetStateSlot(int slot)
|
|||
|
||||
void MainWindow::IncrementSelectedStateSlot()
|
||||
{
|
||||
int state_slot = m_state_slot + 1;
|
||||
u32 state_slot = m_state_slot + 1;
|
||||
if (state_slot > State::NUM_STATES)
|
||||
state_slot = 1;
|
||||
m_menu_bar->SetStateSlot(state_slot);
|
||||
|
@ -1391,7 +1391,7 @@ void MainWindow::IncrementSelectedStateSlot()
|
|||
|
||||
void MainWindow::DecrementSelectedStateSlot()
|
||||
{
|
||||
int state_slot = m_state_slot - 1;
|
||||
u32 state_slot = m_state_slot - 1;
|
||||
if (state_slot < 1)
|
||||
state_slot = State::NUM_STATES;
|
||||
m_menu_bar->SetStateSlot(state_slot);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue