From ea7119beadef79c691d8d988858fcb802bb8cf7a Mon Sep 17 00:00:00 2001 From: Guillaume Dupuy Date: Mon, 3 Apr 2017 01:43:26 +0200 Subject: [PATCH] Don't fake invalid action if there is nothing to fake (no item equiped) --HG-- branch : compatibility-develop --- code/ryzom/client/src/item_group_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index 90b8424a6..6584060ff 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -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; }