mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
chore(glue): correct minor inaccuracy in Script_SetSelectedRace
This commit is contained in:
parent
827706d49c
commit
cb589c20e6
@ -242,8 +242,9 @@ int32_t Script_SetSelectedRace(lua_State* L) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto raceIndex = lua_tointeger(L, 1);
|
auto raceIndex = lua_tonumber(L, 1) - 1;
|
||||||
CCharacterCreation::SetSelectedRace(raceIndex - 1);
|
|
||||||
|
CCharacterCreation::SetSelectedRace(raceIndex);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user