Don't fake invalid action if there is nothing to fake (no item equiped)
--HG-- branch : develop
This commit is contained in:
parent
87b0a85fe6
commit
cf3cf69c39
1 changed files with 2 additions and 1 deletions
|
@ -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
|
// 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
|
||||||
|
if(maxEquipTime > 0)
|
||||||
fakeInvalidActions((NLMISC::TGameCycle)maxEquipTime);
|
fakeInvalidActions((NLMISC::TGameCycle)maxEquipTime);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue