diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-04-01 20:36:30 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-04-01 20:36:30 +0200 |
commit | 98e848436dd2bc8cebbbb5059a24c5ffcfd799a6 (patch) | |
tree | e31f1d022e963bf86170f9ff5c90b7a22d4d3822 /src/server/scripts/Commands | |
parent | 2485d13e35cee4520323aad25313f3453537de6d (diff) |
Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_gobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int32> objectState) + static bool HandleGameObjectSetStateCommand(ChatHandler* handler, GameObjectSpawnId guidLow, int32 objectType, Optional<uint32> 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)); |