From 98e848436dd2bc8cebbbb5059a24c5ffcfd799a6 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 1 Apr 2022 20:36:30 +0200 Subject: Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there --- src/server/scripts/Commands/cs_gobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 36b25e92fef..203609f513f 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -571,7 +571,7 @@ public: return true; } - static bool HandleGameObjectSetStateCommand(ChatHandler* handler, GameObjectSpawnId guidLow, int32 objectType, Optional objectState) + static bool HandleGameObjectSetStateCommand(ChatHandler* handler, GameObjectSpawnId guidLow, int32 objectType, Optional objectState) { if (!guidLow) return false; @@ -614,7 +614,7 @@ public: object->SendCustomAnim(*objectState); break; case 5: - if (objectState < 0 || objectState > GO_DESTRUCTIBLE_REBUILDING) + if (*objectState > GO_DESTRUCTIBLE_REBUILDING) return false; object->SetDestructibleState(GameObjectDestructibleState(*objectState)); -- cgit v1.2.3