diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-09 20:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-09 20:30:47 +0300 |
commit | 407de0a8d0898b28a587962e997df816cb17b6a9 (patch) | |
tree | 99a0184bb44950a900a9f093afb8887bdd148548 /src/resources/mapreader.cpp | |
parent | 972fdcbd1ed61e2528c8b4c733f21a70d7f674b1 (diff) | |
download | manaplus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.gz manaplus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.bz2 manaplus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.xz manaplus-407de0a8d0898b28a587962e997df816cb17b6a9.zip |
Fix code style.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 22fcd7bd8..cc9a2917d 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -627,9 +627,9 @@ inline static void setTile(Map *const map, case MapLayerType::HEIGHTS: { - if ((set == nullptr) || (heights == nullptr)) + if (set == nullptr || heights == nullptr) break; - if ((heights != nullptr) && map->getVersion() >= 2) + if (map->getVersion() >= 2) { heights->setHeight(x, y, CAST_U8( gid - set->getFirstGid() + 1)); |