mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Switch player names to std::string
This commit is contained in:
parent
603eb57943
commit
cc8e7a569e
18 changed files with 39 additions and 36 deletions
|
@ -1594,7 +1594,7 @@ Inventory* Client::getInventory(const InventoryLocation &loc)
|
|||
{
|
||||
// Check if we are working with local player inventory
|
||||
LocalPlayer *player = m_env.getLocalPlayer();
|
||||
if (!player || strcmp(player->getName(), loc.name.c_str()) != 0)
|
||||
if (!player || player->getName() != loc.name)
|
||||
return NULL;
|
||||
return &player->inventory;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue