mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Fix static analysis issues
This commit is contained in:
@@ -239,7 +239,7 @@ inline void LoadDBC(uint32& availableDbcLocales, StoreProblemList& errors, DBCSt
|
||||
localizedName.push_back('/');
|
||||
localizedName.append(filename);
|
||||
|
||||
if (!storage.LoadStringsFrom(localizedName.c_str()))
|
||||
if (!storage.LoadStringsFrom(localizedName))
|
||||
availableDbcLocales &= ~(1 << i); // mark as not available for speedup next checks
|
||||
}
|
||||
|
||||
|
||||
@@ -936,7 +936,7 @@ DumpReturn PlayerDumpReader::LoadDump(std::string const& file, uint32 account, s
|
||||
if (!ChangeColumn(ts, line, "at_login", "1"))
|
||||
return DUMP_FILE_BROKEN;
|
||||
}
|
||||
else if (!ChangeColumn(ts, line, "name", name.c_str())) // characters.name
|
||||
else if (!ChangeColumn(ts, line, "name", name)) // characters.name
|
||||
return DUMP_FILE_BROKEN;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user