mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Switch player names to std::string
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user