From c8211ceb3e3a9e28767e57a497f8912d6a6bdf5c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 29 Nov 2011 14:13:57 +0200 Subject: Some MSVC fixes --- src/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tile.cpp') diff --git a/src/tile.cpp b/src/tile.cpp index b6abc5427..bf0e264c6 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -1082,7 +1082,7 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, assert(driver); // Stuff starting with [ are special commands - if(part_of_name[0] != '[') + if(part_of_name.size() == 0 || part_of_name[0] != '[') { video::IImage *image = sourcecache->getOrLoad(part_of_name, device); -- cgit v1.2.3