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:
parent
c910ead4db
commit
c8211ceb3e
3 changed files with 14 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue