Don't fake invalid action if there is nothing to fake (no item equiped)

--HG--
branch : compatibility-develop
This commit is contained in:
Guillaume Dupuy 2017-04-03 01:43:26 +02:00
parent 79636f393d
commit ea7119bead

View file

@ -476,6 +476,7 @@ bool CItemGroupManager::equipGroup(std::string name, bool pullBefore)
}
// For some reason, there is no (visual) invalidation (server still blocks any action), force one
// Unfortunately, there is no clean way to do this, so we'll simulate one
if(maxEquipTime > 0)
fakeInvalidActions((NLMISC::TGameCycle)maxEquipTime);
return true;