1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Some MSVC fixes

This commit is contained in:
Perttu Ahola 2011-11-29 14:13:57 +02:00
parent c910ead4db
commit c8211ceb3e
3 changed files with 14 additions and 11 deletions

View file

@ -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);