aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.cpp
diff options
context:
space:
mode:
authorMax Horn2003-03-06 21:36:12 +0000
committerMax Horn2003-03-06 21:36:12 +0000
commita7c1330c6c97d9f55e60ef26839ebc238e1a830a (patch)
tree4dd8d5ed4e4808362f09f072daf875c4b3d23dce /common/gameDetector.cpp
parentcf134f6c6b855e943c7d94776e7d3dfa9dac49ff (diff)
downloadscummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.tar.gz
scummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.tar.bz2
scummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.zip
fixed version_settings generation (now Indy3 works again)
svn-id: r6725
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r--common/gameDetector.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 6adefb779d..81ee9e218c 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -190,10 +190,16 @@ GameDetector::GameDetector() {
int skyCount = countVersions(skyVersions);
VersionSettings *v = (VersionSettings *)calloc(scummCount + simonCount + skyCount + 1, sizeof(VersionSettings));
- memcpy(v, scummVersions, scummCount * sizeof(VersionSettings));
- memcpy(v+scummCount, simonVersions, simonCount * sizeof(VersionSettings));
- memcpy(v+skyCount, skyVersions, skyCount * sizeof(VersionSettings));
version_settings = v;
+
+ memcpy(v, scummVersions, scummCount * sizeof(VersionSettings));
+ v += scummCount;
+
+ memcpy(v, simonVersions, simonCount * sizeof(VersionSettings));
+ v += simonCount;
+
+ memcpy(v, skyVersions, skyCount * sizeof(VersionSettings));
+ v += skyCount;
}
}