aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2017-06-03 16:51:32 +0200
committertreeston <treeston.mmoc@gmail.com>2017-06-03 16:51:32 +0200
commit7c87916f78c852e925506830b102178ecb263fa7 (patch)
treeb8a950d544f1fab09bba0dfa06dad002d7ae29bb /src
parenta3b198c7e19d6627e6078702ffcbaa67969e4943 (diff)
clang is dumb
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp
index 18b7c077608..8406139d018 100644
--- a/src/server/scripts/Commands/cs_debug.cpp
+++ b/src/server/scripts/Commands/cs_debug.cpp
@@ -1506,19 +1506,19 @@ public:
handler->PSendSysMessage("'%s' is not a dungeon map.", mEntry->name[LOCALE_enUS]);
return true;
}
- Difficulty difficulty = Difficulty(difficulty_str ? atoi(difficulty_str) : -1);
+ int32 difficulty = difficulty_str ? atoi(difficulty_str) : -1;
if (difficulty >= MAX_RAID_DIFFICULTY || difficulty < -1)
{
handler->PSendSysMessage("Invalid difficulty %d - specify in range [0,%d).", difficulty, MAX_RAID_DIFFICULTY);
return false;
}
- if (difficulty >= 0 && !GetMapDifficultyData(mEntry->MapID, difficulty))
+ if (difficulty >= 0 && !GetMapDifficultyData(mEntry->MapID, Difficulty(difficulty)))
{
handler->PSendSysMessage("Difficulty %d is not valid for '%s'.", difficulty, mEntry->name[LOCALE_enUS]);
return true;
}
- if (difficulty == Difficulty(-1))
+ if (difficulty == -1)
{
handler->PSendSysMessage("Resetting all difficulties for '%s'.", mEntry->name[LOCALE_enUS]);
for (uint8 diff = (mEntry->IsRaid() ? 0 : 1); diff < (mEntry->IsRaid() ? MAX_RAID_DIFFICULTY : MAX_DUNGEON_DIFFICULTY); ++diff)
@@ -1537,7 +1537,7 @@ public:
else
{
handler->PSendSysMessage("Resetting difficulty %d for '%s'.", difficulty, mEntry->name[LOCALE_enUS]);
- sInstanceSaveMgr->ForceGlobalReset(mEntry->MapID, difficulty);
+ sInstanceSaveMgr->ForceGlobalReset(mEntry->MapID, Difficulty(difficulty));
}
return true;
}