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

--HG--
branch : develop
This commit is contained in:
Guillaume Dupuy 2017-04-03 01:43:26 +02:00
parent 87b0a85fe6
commit cf3cf69c39

View file

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