diff options
-rw-r--r-- | engines/mads/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/interface.cpp b/engines/mads/interface.cpp index e3105614ca..79ae1d7826 100644 --- a/engines/mads/interface.cpp +++ b/engines/mads/interface.cpp @@ -77,7 +77,7 @@ void InterfaceSurface::setup(int id) { // Strip off any extension const char *p = strchr(resName.c_str(), '.'); if (p) { - resName = Common::String(resName.c_str(), p - 1); + resName = Common::String(resName.c_str(), p); } // Add on suffix if necessary |