chore(glue): correct minor inaccuracy in Script_SetSelectedRace

This commit is contained in:
fallenoak committed 2026-01-04 13:51:05 -06:00
1 parent 827706d49c
commit cb589c20e6
1 file changed
+3 -2
+3 -2
View File
@@ -242,8 +242,9 @@ int32_t Script_SetSelectedRace(lua_State* L) {
return 0;
}
auto raceIndex = lua_tointeger(L, 1);
CCharacterCreation::SetSelectedRace(raceIndex - 1);
auto raceIndex = lua_tonumber(L, 1) - 1;
CCharacterCreation::SetSelectedRace(raceIndex);
return 0;
}