diff --git a/client/CAnimation.cpp b/client/CAnimation.cpp index 38dbeabc7..2e582cc23 100644 --- a/client/CAnimation.cpp +++ b/client/CAnimation.cpp @@ -597,8 +597,8 @@ SDLImage::SDLImage(std::string filename, bool compressed): } void SDLImage::draw(SDL_Surface *where, int posX, int posY, Rect *src, unsigned char rotation) const -{ - if (!surf) +{ + if (!surf) return; Rect sourceRect(margins.x, margins.y, surf->w, surf->h); //TODO: rotation and scaling diff --git a/server/CVCMIServer.cpp b/server/CVCMIServer.cpp index 32157856b..617d6dadf 100644 --- a/server/CVCMIServer.cpp +++ b/server/CVCMIServer.cpp @@ -518,8 +518,6 @@ int main(int argc, char** argv) #endif } tlog0 << "Port " << port << " will be used." << std::endl; - CLodHandler h3bmp; - h3bmp.init(DATA_DIR "/Data/H3bitmap.lod", DATA_DIR "/Data"); initDLL(console,logfile); srand ( (unsigned int)time(NULL) ); try