Fix #315 by @pacmanis

Credits go to @pacmanis
This commit is contained in:
Joao Pasqualini Costa 2013-04-09 18:02:43 -03:00
parent 9bae1b9e25
commit 57bb6ff974
1 changed files with 3 additions and 3 deletions

View File

@ -449,15 +449,15 @@ ThingPtr Tile::getTopMultiUseThing()
if(isEmpty())
return nullptr;
if(CreaturePtr topCreature = getTopCreature())
return topCreature;
for(uint i = 0; i < m_things.size(); ++i) {
ThingPtr thing = m_things[i];
if(thing->isForceUse())
return thing;
}
if(CreaturePtr topCreature = getTopCreature())
return topCreature;
for(uint i = 0; i < m_things.size(); ++i) {
ThingPtr thing = m_things[i];
if(!thing->isGround() && !thing->isGroundBorder() && !thing->isOnBottom() && !thing->isOnTop()) {