diff options
author | Max Horn | 2003-03-06 21:36:12 +0000 |
---|---|---|
committer | Max Horn | 2003-03-06 21:36:12 +0000 |
commit | a7c1330c6c97d9f55e60ef26839ebc238e1a830a (patch) | |
tree | 4dd8d5ed4e4808362f09f072daf875c4b3d23dce | |
parent | cf134f6c6b855e943c7d94776e7d3dfa9dac49ff (diff) | |
download | scummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.tar.gz scummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.tar.bz2 scummvm-rg350-a7c1330c6c97d9f55e60ef26839ebc238e1a830a.zip |
fixed version_settings generation (now Indy3 works again)
svn-id: r6725
-rw-r--r-- | common/gameDetector.cpp | 12 |
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; } } |