1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-05 18:41:05 +00:00

Switch player names to std::string

This commit is contained in:
Lars Mueller 2023-11-12 15:25:46 +01:00 committed by sfan5
parent 603eb57943
commit cc8e7a569e
18 changed files with 39 additions and 36 deletions

View file

@ -72,7 +72,7 @@ int LuaLocalPlayer::l_get_name(lua_State *L)
{
LocalPlayer *player = getobject(L, 1);
lua_pushstring(L, player->getName());
lua_pushstring(L, player->getName().c_str());
return 1;
}

View file

@ -1166,7 +1166,7 @@ int ObjectRef::l_get_player_name(lua_State *L)
return 1;
}
lua_pushstring(L, player->getName());
lua_pushstring(L, player->getName().c_str());
return 1;
}