itemdef: handle the !render-to-target case

master
Jonathan Neuschäfer 2012-02-08 11:49:23 +01:00
parent 993821a924
commit 496451c164
1 changed files with 7 additions and 1 deletions

View File

@ -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]);
}
}
/*