refactor(Core/Misc): remove the ternary operator when used improperly (#3327)

This commit is contained in:
Stefano Borzì
2020-09-10 12:29:23 +02:00
committed by GitHub
parent 207512a0f5
commit 51330f54d8
19 changed files with 67 additions and 67 deletions

View File

@@ -275,7 +275,7 @@ public:
InstanceCleanup();
break;
case DATA_ACHIEV:
bAchiev = data ? true : false;
bAchiev = !!data;
break;
}
}
@@ -596,7 +596,7 @@ public:
// open main gate
HandleGameObject(GO_MainGateGUID, true);
if (m_auiEncounter[MAX_ENCOUNTER-1] != DONE) // instance not finished
{
// close all cells