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