diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-12-12 00:05:53 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-12-12 00:05:53 +0100 |
commit | 075e173fbd90292706d4033fcb965a4e48b2da6f (patch) | |
tree | 49a3ed4e49212a214423194e1b70be2a2d4f63ae | |
parent | 3fe9165201b31f13ce772fb8d029a81eaadcdb8b (diff) | |
download | MultiMC-075e173fbd90292706d4033fcb965a4e48b2da6f.tar MultiMC-075e173fbd90292706d4033fcb965a4e48b2da6f.tar.gz MultiMC-075e173fbd90292706d4033fcb965a4e48b2da6f.tar.lz MultiMC-075e173fbd90292706d4033fcb965a4e48b2da6f.tar.xz MultiMC-075e173fbd90292706d4033fcb965a4e48b2da6f.zip |
NOISSUE fix build
-rw-r--r-- | api/logic/minecraft/World.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/minecraft/World.cpp b/api/logic/minecraft/World.cpp index 490abdf4..0c9171e4 100644 --- a/api/logic/minecraft/World.cpp +++ b/api/logic/minecraft/World.cpp @@ -378,14 +378,15 @@ void World::loadFromLevelDat(QByteArray data) m_lastPlayed = QDateTime::fromMSecsSinceEpoch(temp); } - m_gameType = (GameType) read_int(val, "GameType", 0); + int GameType_val = read_int(val, "GameType", 0); + m_gameType = (GameType) GameType_val; m_randomSeed = read_long(val, "RandomSeed", 0); qDebug() << "World Name:" << m_actualName; qDebug() << "Last Played:" << m_lastPlayed.toString(); qDebug() << "Seed:" << m_randomSeed; - qDebug() << "GameMode:" << m_gameType; + qDebug() << "GameMode:" << GameType_val; } catch (const nbt::io::input_error &e) { |