summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index be17804d8..8c36fa771 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -29,6 +29,8 @@
#include "enums/resources/map/maptype.h"
+#include "resources/map/tileinfo.h"
+
#include <vector>
class Image;
@@ -76,7 +78,7 @@ class MapLayer final: public ConfigListener
* Set tile image with x + y * width already known.
*/
void setTile(const int index, Image *const img)
- { mTiles[index] = img; }
+ { mTiles[index].image = img; }
/**
* Draws this layer to the given graphics context. The coordinates are
@@ -157,7 +159,7 @@ class MapLayer final: public ConfigListener
const int mY;
const int mWidth;
const int mHeight;
- Image **const mTiles;
+ TileInfo *const mTiles;
MapTypeT mDrawLayerFlags;
const SpecialLayer *mSpecialLayer;
const SpecialLayer *mTempLayer;