From 1ac34815796f4e90ae61b0d70d3d0bcdab48921d Mon Sep 17 00:00:00 2001 From: mateuszb Date: Sun, 4 Oct 2009 12:07:42 +0000 Subject: [PATCH] * fix for bug 85 (mantis) --- client/CBitmapHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CBitmapHandler.cpp b/client/CBitmapHandler.cpp index 85012e2a8..f0d6461fa 100644 --- a/client/CBitmapHandler.cpp +++ b/client/CBitmapHandler.cpp @@ -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) {