summaryrefslogtreecommitdiff
path: root/src/itemdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r--src/itemdef.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index aa888bbdf..22ca9f088 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -417,7 +417,13 @@ public:
light_position,
light_color,
light_radius);
- // Note: might have returned NULL
+
+ // render-to-target didn't work
+ if(def->inventory_texture == NULL)
+ {
+ def->inventory_texture =
+ tsrc->getTextureRaw(f.tname_tiles[0]);
+ }
}
/*