Scripts/Commands: Fix static analysis issues
This commit is contained in:
1 parent
15a9c6729e
commit
5462936896
2 files changed
+5
-5
No files matched your search
@@ -308,6 +308,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
encounterId = atoi(param1);
|
||||
|
||||
if (encounterId > map->ToInstanceMap()->GetInstanceScript()->GetEncounterCount())
|
||||
{
|
||||
handler->PSendSysMessage(LANG_BAD_VALUE);
|
||||
@@ -315,8 +317,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
encounterId = atoi(param1);
|
||||
|
||||
uint8 state = map->ToInstanceMap()->GetInstanceScript()->GetBossState(encounterId);
|
||||
handler->PSendSysMessage(LANG_COMMAND_INST_GET_BOSS_STATE, encounterId, state);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user