aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/scicore')
-rw-r--r--engines/sci/scicore/resource.cpp2
-rw-r--r--engines/sci/scicore/resource_patch.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/scicore/resource.cpp b/engines/sci/scicore/resource.cpp
index d6064abf25..45cb4a64a7 100644
--- a/engines/sci/scicore/resource.cpp
+++ b/engines/sci/scicore/resource.cpp
@@ -380,7 +380,7 @@ int scir_add_appropriate_sources(ResourceManager *mgr) {
for (Common::ArchiveMemberList::const_iterator x = files.begin(); x != files.end(); ++x) {
const Common::String name = (*x)->getName();
- char *dot = strrchr(name.c_str(), '.');
+ const char *dot = strrchr(name.c_str(), '.');
int number = atoi(dot + 1);
scir_add_volume(mgr, map, name.c_str(), number, 0);
diff --git a/engines/sci/scicore/resource_patch.cpp b/engines/sci/scicore/resource_patch.cpp
index 154eb73984..1ba016a9cd 100644
--- a/engines/sci/scicore/resource_patch.cpp
+++ b/engines/sci/scicore/resource_patch.cpp
@@ -164,7 +164,7 @@ sci1_read_resource_patches(ResourceSource *source, resource_t **resource_p, int
int resnumber = -1;
int i;
char *endptr;
- char *dot = strchr(name.c_str(), '.');
+ const char *dot = strchr(name.c_str(), '.');
for (i = sci_view; i < sci_invalid_resource; i++) {
if (dot != NULL) {