fixed compilation

svn-id: r38599
This commit is contained in:
Paweł Kołodziejski 2009-02-20 16:19:29 +00:00
parent 5066e2c4be
commit 823d924064
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {