mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/DataStores: Fixed crash when loading additional db2 locales
This commit is contained in:
@@ -121,12 +121,10 @@ bool DB2StorageBase::LoadStringsFrom(std::string const& path, uint32 locale, cha
|
||||
return false;
|
||||
|
||||
DB2FileLoader db2;
|
||||
{
|
||||
DB2FileSystemSource source(path + _fileName);
|
||||
// Check if load was successful, only then continue
|
||||
if (!db2.Load(&source, _loadInfo))
|
||||
return false;
|
||||
}
|
||||
DB2FileSystemSource source(path + _fileName);
|
||||
// Check if load was successful, only then continue
|
||||
if (!db2.Load(&source, _loadInfo))
|
||||
return false;
|
||||
|
||||
// load strings from another locale db2 data
|
||||
if (_loadInfo->GetStringFieldCount(true))
|
||||
|
||||
Reference in New Issue
Block a user