mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 07:06:13 +00:00
Don't fake invalid action if there is nothing to fake (no item equiped)
--HG-- branch : compatibility-develop
This commit is contained in:
parent
79636f393d
commit
ea7119bead
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
// 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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue