[Scummvm-git-logs] scummvm master -> 64d7033cbc30d9aecb35ba775cbd2c45e5a0f537

dreammaster noreply at scummvm.org
Mon Jan 27 22:21:58 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
64d7033cbc HOPKINS: Fix crash using elevator


Commit: 64d7033cbc30d9aecb35ba775cbd2c45e5a0f537
    https://github.com/scummvm/scummvm/commit/64d7033cbc30d9aecb35ba775cbd2c45e5a0f537
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-01-27T14:21:50-08:00

Commit Message:
HOPKINS: Fix crash using elevator

Changed paths:
    NEWS.md
    common/path.h


diff --git a/NEWS.md b/NEWS.md
index 1e28aef201d..b96d115f9a5 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -7,6 +7,9 @@ For a more comprehensive changelog of the latest experimental code, see:
    - Added support for Dark Seed.
    - Added support for God of Thunder.
 
+ Hopkins:
+   - Fix crash using elevator to go to other floors.
+
  Nuvie:
    - Added "Transfer a Character" feature to main menu.
 
diff --git a/common/path.h b/common/path.h
index 063ac58548e..0f17e0b18c1 100644
--- a/common/path.h
+++ b/common/path.h
@@ -114,7 +114,7 @@ private:
 	 * @param separator The directory separator used in str
 	 */
 	static inline bool needsEncoding(const char *str, char separator) {
-		return *str && // String is not empty and
+		return str && *str && // String is not empty and
 		       (separator != SEPARATOR || // separator is not the one we use
 		        *str == ESCAPE); // or string begins with ESCAPE
 	}




More information about the Scummvm-git-logs mailing list