refactor(Core/Instance): make SetBossState void (#13412)

This commit is contained in:
Angelo Venturini 2023-02-04 20:05:20 -03:00 committed by GitHub
parent 1f5ca6a7b4
commit 0ed7813e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -338,10 +338,11 @@ bool InstanceScript::SetBossState(uint32 id, EncounterState state)
return false;
}
std::string InstanceScript::LoadBossState(const char* data)
void InstanceScript::LoadBossState(const char* data)
{
if (!data)
return nullptr;
return;
std::istringstream loadStream(data);
uint32 buff;
uint32 bossId = 0;
@ -351,7 +352,6 @@ std::string InstanceScript::LoadBossState(const char* data)
if (buff < TO_BE_DECIDED)
SetBossState(bossId, (EncounterState)buff);
}
return loadStream.str();
}
std::string InstanceScript::GetBossSaveData()