diff options
Diffstat (limited to 'games/apricots/files/patch-apricots_init.cpp')
-rw-r--r-- | games/apricots/files/patch-apricots_init.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/apricots/files/patch-apricots_init.cpp b/games/apricots/files/patch-apricots_init.cpp new file mode 100644 index 000000000000..8e6e3353ef0f --- /dev/null +++ b/games/apricots/files/patch-apricots_init.cpp @@ -0,0 +1,20 @@ +--- apricots/init.cpp.orig 2021-02-12 23:45:58 UTC ++++ apricots/init.cpp +@@ -219,7 +219,7 @@ void init_gameconstants(gamedata &g) { + + string getConfig(string config, string name, string defval) { + // Pull out just the name line +- unsigned int ndx = config.find(name); ++ size_t ndx = config.find(name); + + if (ndx == string::npos) { + return defval; +@@ -240,7 +240,7 @@ string getConfig(string config, string name, string de + + int getConfig(string config, string name, int defval, int min, int max) { + // Pull out just the name line +- unsigned int ndx = config.find(name); ++ size_t ndx = config.find(name); + + if (ndx == string::npos) { + return defval; |