summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp3
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
{