mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add playernumber to favorites list
This commit is contained in:
parent
8a1658ec3e
commit
d6c052038f
2 changed files with 14 additions and 3 deletions
|
@ -556,7 +556,7 @@ int guiLuaApi::l_get_favorites(lua_State *L)
|
|||
|
||||
if (servers[i]["clients_max"].asString().size()) {
|
||||
|
||||
const char* clients_max_raw = servers[i]["clients"].asString().c_str();
|
||||
const char* clients_max_raw = servers[i]["clients_max"].asString().c_str();
|
||||
char* endptr = 0;
|
||||
int numbervalue = strtol(clients_max_raw,&endptr,10);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue