Closed rezso closed 6 years ago
take this patch
--- a/src/Isomot.cpp
+++ b/src/Isomot.cpp
@@ -414,7 +414,7 @@ BITMAP* Isomot::update()
);
std::string roomFile = activeRoom->getNameOfFileWithDataAboutRoom() ;
- char* fromLastSlash = std::strrchr( roomFile.c_str (), '/' );
+ const char* fromLastSlash = std::strrchr( roomFile.c_str (), '/' );
if ( fromLastSlash != nilPointer )
roomFile = std::string( fromLastSlash + 1 );
I compiled efc740c successfully, thanks.
Compiling https://github.com/dougmencken/HeadOverHeels/commit/6d3d54a24ce08ce2ee9501f0f55f98f4870bd4d5 fails:
Isomot.cpp: In member function ‘BITMAP isomot::Isomot::update()’: Isomot.cpp:417:51: error: invalid conversion from ‘const char’ to ‘char’ [-fpermissive] char fromLastSlash = std::strrchr( roomFile.c_str (), '/' );