summaryrefslogtreecommitdiff
path: root/game/terrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r--game/terrain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp
index 3778f3d..a4b6510 100644
--- a/game/terrain.cpp
+++ b/game/terrain.cpp
@@ -18,8 +18,8 @@
#include <vector>
Terrain::Terrain(std::shared_ptr<GeoData> tm) :
- geoData {std::move(tm)}, grass {Texture::cachedTexture.get("grass.png")},
- water {Texture::cachedTexture.get("water.png")}
+ geoData {std::move(tm)}, grass {std::make_shared<Texture>("grass.png")},
+ water {std::make_shared<Texture>("water.png")}
{
generateMeshes();
}