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:
parent
288607bc72
commit
1ac3481579
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user