diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:34 +0300 |
commit | dc569bbcb4c12a5a400f9e5701e5c1027badadae (patch) | |
tree | 9b502cafda345e7fb4b0342de97c77822544d9fd /src/resources/mapreader.cpp | |
parent | 88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (diff) | |
download | manaverse-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.gz manaverse-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.bz2 manaverse-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.xz manaverse-dc569bbcb4c12a5a400f9e5701e5c1027badadae.zip |
Fix code style in resources.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index e16d1d850..ec219886e 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -524,7 +524,8 @@ inline static void setTile(Map *const map, MapLayer *const layer, break; if (map->getVersion() >= 2) { - heights->setHeight(x, y, gid - set->getFirstGid() + 1); + heights->setHeight(x, y, static_cast<uint8_t>( + gid - set->getFirstGid() + 1)); } else { |