mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
feat(net): implement NetClient::Disconnect
This commit is contained in:
parent
032e9f93d8
commit
41dc426db3
5 changed files with 41 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ int32_t Script_GetCharacterInfo(lua_State* L) {
|
|||
}
|
||||
|
||||
int32_t index = static_cast<int32_t>(lua_tonumber(L, 1)) - 1;
|
||||
if (index < 0 || index > CCharacterSelection::GetNumCharacters()) {
|
||||
if (index < 0 || index >= CCharacterSelection::GetNumCharacters()) {
|
||||
lua_pushnil(L); // name
|
||||
lua_pushnil(L); // race
|
||||
lua_pushnil(L); // class
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue