summaryrefslogtreecommitdiff
path: root/src/tiled.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiled.c')
-rw-r--r--src/tiled.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tiled.c b/src/tiled.c
index 82b29e0..65b9d1d 100644
--- a/src/tiled.c
+++ b/src/tiled.c
@@ -50,8 +50,8 @@ Tiled initTiled(TiledMap tiledMap) {
tiled.tiledMap = tiledMap;
tiled.offset = (Vector2) {0, 0};
tiled.zoom = 64;
- tiled.mapSize[0] = tiled.tilemapTexture.width;
- tiled.mapSize[1] = tiled.tilemapTexture.height;
+ tiled.mapSize[0] = tiled.tiledMap.width;
+ tiled.mapSize[1] = tiled.tiledMap.height;
tiled.targetTexture = LoadRenderTexture(1, 1);
tiled.atlasSize[0] = tiledMap.atlasSize[0];