1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

* fix for bug 85 (mantis)

This commit is contained in:
mateuszb 2009-10-04 12:07:42 +00:00
parent 288607bc72
commit 1ac3481579

View File

@ -177,7 +177,7 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
}
unsigned char * pcx;
std::transform(fname.begin(),fname.end(),fname.begin(),toupper);
fname.replace(fname.find_first_of('.'),fname.find_first_of('.')+4,".PCX");
fname.replace(fname.find_last_of('.'), fname.find_last_of('.')+4, ".PCX");
Entry *e = bitmaph->entries.znajdz(fname);
if(!e)
{