mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix compiler warnings
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
94da1308ac
commit
ec4b36b299
25 changed files with 62 additions and 70 deletions
|
|
@ -256,7 +256,7 @@ void World::readFromFS(const QFileInfo& file)
|
|||
loadFromLevelDat(bytes);
|
||||
m_levelDatTime = file.lastModified();
|
||||
if (m_randomSeed == 0) {
|
||||
auto bytes = getWorldGenDataFromFS(file);
|
||||
bytes = getWorldGenDataFromFS(file);
|
||||
if (!bytes.isEmpty()) {
|
||||
m_randomSeed = loadSeed(bytes);
|
||||
}
|
||||
|
|
@ -426,7 +426,7 @@ int64_t loadSeed(QByteArray data)
|
|||
nbt::value* valPtr = nullptr;
|
||||
try {
|
||||
valPtr = &levelData->at("data");
|
||||
} catch (const std::out_of_range& e) {
|
||||
} catch (const std::out_of_range&) {
|
||||
return 0;
|
||||
}
|
||||
nbt::value& val = *valPtr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue