From 9c88ed16828ef6dde467fc03bb9af8d04b0bb3e2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 8 Mar 2014 10:28:59 -0500 Subject: MADS: Fix loading user interface background --- engines/mads/interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3