mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Probably fixed #732, one more fix for spawning wandering monsters.
This commit is contained in:
@@ -1329,7 +1329,10 @@ void CPlayerInterface::update()
|
|||||||
|
|
||||||
//in some conditions we may receive calls before selection is initialized - we must ignore them
|
//in some conditions we may receive calls before selection is initialized - we must ignore them
|
||||||
if(adventureInt && !adventureInt->selection && GH.topInt() == adventureInt)
|
if(adventureInt && !adventureInt->selection && GH.topInt() == adventureInt)
|
||||||
|
{
|
||||||
|
pim->unlock();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Handles mouse and key input
|
// Handles mouse and key input
|
||||||
GH.updateTime();
|
GH.updateTime();
|
||||||
|
@@ -525,8 +525,8 @@ void CStackInstance::setType(const CCreature *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
type = c;
|
type = c;
|
||||||
|
if(type)
|
||||||
attachTo(const_cast<CCreature*>(type));
|
attachTo(const_cast<CCreature*>(type));
|
||||||
}
|
}
|
||||||
std::string CStackInstance::bonusToString(Bonus *bonus, bool description) const
|
std::string CStackInstance::bonusToString(Bonus *bonus, bool description) const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user