diff options
author | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
commit | dd900258b2c67562dc58840722b0223f68769b3c (patch) | |
tree | 0e7869e6d2cfa43e720911f9a7c0f43027bbc87a /src/modules.cc | |
parent | 29dce5dd3fadafc1f4b775ecbf7980ce5223dd1e (diff) |
Rework loadsave.c:loaded_game_module to use std::string
Diffstat (limited to 'src/modules.cc')
-rw-r--r-- | src/modules.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cc b/src/modules.cc index aba71731..de9ad1ad 100644 --- a/src/modules.cc +++ b/src/modules.cc @@ -232,9 +232,9 @@ static void init_module(module_type *module_ptr) } } -bool_ module_savefile_loadable(cptr savefile_mod) +bool module_savefile_loadable(std::string const &tag) { - return (strcmp(savefile_mod, modules[game_module_idx].meta.save_file_tag) == 0); + return tag == modules[game_module_idx].meta.save_file_tag; } /* Did the player force a module on command line */ |