diff --git a/source/build/src/defs.cpp b/source/build/src/defs.cpp index e597c5a31..4642b214d 100644 --- a/source/build/src/defs.cpp +++ b/source/build/src/defs.cpp @@ -768,7 +768,7 @@ static int32_t defsparser(scriptfile *script) if (have_size) { - vec2_16_t const orig_size = tileGetSize(tile); + vec2_16_t const orig_size = tilesiz[tile]; if (orig_size.x != tile_size.x && orig_size.y != tile_size.y) { // initprintf("Size of tile %d doesn't match! Size: (%d, %d), Expected: (%d, %d)\n", tile, orig_size.x, orig_size.y, tile_size.x, tile_size.y);