mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix container update item
This commit is contained in:
@@ -369,7 +369,12 @@ int Game::getThingStackpos(const ThingPtr& thing)
|
||||
// thing is at map
|
||||
if(thing->getPos().x != 65535) {
|
||||
TilePtr tile = g_map.getTile(thing->getPos());
|
||||
return tile->getThingStackpos(thing);
|
||||
if(tile)
|
||||
return tile->getThingStackpos(thing);
|
||||
else {
|
||||
logError("could not get tile");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// thing is at container or inventory
|
||||
|
Reference in New Issue
Block a user