mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
New sexy 'move stackable item' window!
This commit is contained in:
@@ -278,9 +278,10 @@ bool Tile::hasThing(const ThingPtr& thing)
|
||||
|
||||
int Tile::getThingStackpos(const ThingPtr& thing)
|
||||
{
|
||||
for(uint stackpos = 0; stackpos < m_things.size(); ++stackpos)
|
||||
for(uint stackpos = 0; stackpos < m_things.size(); ++stackpos) {
|
||||
if(thing == m_things[stackpos])
|
||||
return stackpos;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user