mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
plugins/cheat: fix selection
This commit is contained in:
parent
c9daa42aa9
commit
a928d3c40c
@ -423,7 +423,7 @@ function cheat.startplugin()
|
||||
local function set_index(cheat, index)
|
||||
local param = cheat.parameter
|
||||
local oldindex = param.index
|
||||
if (param.index < 0) or (param.index >= param.last) or (param.index == index) then
|
||||
if (index < 0) or (index > param.last) or (param.index == index) then
|
||||
return param.index, false
|
||||
end
|
||||
param.index = index
|
||||
|
Loading…
Reference in New Issue
Block a user