aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 1dca763..3fb5b6b 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -144,7 +144,7 @@ void World::generateMesh()
Texture &t = registry.at(d).texture;
glm::vec2& to = t.offset;
- glm::vec2& ts = t.offsetSize;
+ glm::vec2& ts = t.size;
mesh += {X , Y , Z, to.x , to.y+ts.y, 1.0};
mesh += {X+1, Y , Z, to.x+ts.x, to.y+ts.y, 1.0};