fix(DB): Command reload acore_string (#2484)

This commit is contained in:
VhiperDEV
2019-12-04 03:21:55 -03:00
committed by Stoabrogga
parent 64aa475d0f
commit b0a7bc77a0
3 changed files with 6 additions and 3 deletions

View File

@@ -7753,7 +7753,7 @@ bool ObjectMgr::LoadAcoreStrings()
QueryResult result = WorldDatabase.PQuery("SELECT entry, content_default, content_loc1, content_loc2, content_loc3, content_loc4, content_loc5, content_loc6, content_loc7, content_loc8 FROM acore_string");
if (!result)
{
sLog->outString(">> Loaded 0 trinity strings. DB table `acore_strings` is empty.");
sLog->outString(">> Loaded 0 acore strings. DB table `acore_strings` is empty.");
sLog->outString();
return false;
}
@@ -7773,7 +7773,7 @@ bool ObjectMgr::LoadAcoreStrings()
} while (result->NextRow());
sLog->outString(">> Loaded %u trinity strings in %u ms", (uint32)_acoreStringStore.size(), GetMSTimeDiffToNow(oldMSTime));
sLog->outString(">> Loaded %u acore strings in %u ms", (uint32)_acoreStringStore.size(), GetMSTimeDiffToNow(oldMSTime));
sLog->outString();
return true;

View File

@@ -1395,7 +1395,7 @@ void World::SetInitialWorldSettings()
///- Loading strings. Getting no records means core load has to be canceled because no error message can be output.
sLog->outString();
sLog->outString("Loading Trinity strings...");
sLog->outString("Loading acore strings...");
if (!sObjectMgr->LoadAcoreStrings())
exit(1); // Error message displayed in function already