mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
refactor(Core/Misc): remove the ternary operator when used improperly (#3327)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user