New sexy 'move stackable item' window!

This commit is contained in:
BeniS
2013-01-09 06:59:03 +13:00
parent a1a8d28f5c
commit 8d07f8eaf6
4 changed files with 52 additions and 31 deletions

View File

@@ -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;
}