From 871552eab28d07c3aaf0cabb5fb167c0eb365bdf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 22 Dec 2014 16:02:48 +0000 Subject: Fixed a bug where the lad/savegame dialog wouldn't show the screenshot of the first selected savegame, minor code cleamups in material handling. --- src/render/textures.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render') diff --git a/src/render/textures.cc b/src/render/textures.cc index bd75a45..15c9bd5 100644 --- a/src/render/textures.cc +++ b/src/render/textures.cc @@ -414,7 +414,7 @@ size_t Textures::bind(const size_t texture, const bool filter) void Textures::image_loader(model::Layer *layer) { if (layer->texture().size() > 0 ) { - size_t id = load(layer->texture()); + size_t id = load(layer->texture().c_str()); layer->set_texture_id(id); layer->set_size(texture_size[id]); } -- cgit v1.2.3