mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
chore(glue): correct minor inaccuracy in Script_SetSelectedRace
This commit is contained in:
1 file changed
+3
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user