mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-04 15:51:42 +00:00
SCI: Cleanup Script::initializeObjects version checks
Coverity issue 1498711
This commit is contained in:
parent
674a373cd6
commit
b3a522914f
@ -1225,10 +1225,10 @@ void Script::initializeObjectsSci3(SegManager *segMan, SegmentId segmentId, bool
|
|||||||
void Script::initializeObjects(SegManager *segMan, SegmentId segmentId, bool applyScriptPatches) {
|
void Script::initializeObjects(SegManager *segMan, SegmentId segmentId, bool applyScriptPatches) {
|
||||||
if (getSciVersion() <= SCI_VERSION_1_LATE)
|
if (getSciVersion() <= SCI_VERSION_1_LATE)
|
||||||
initializeObjectsSci0(segMan, segmentId, applyScriptPatches);
|
initializeObjectsSci0(segMan, segmentId, applyScriptPatches);
|
||||||
else if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1_LATE)
|
else if (getSciVersion() <= SCI_VERSION_2_1_LATE)
|
||||||
initializeObjectsSci11(segMan, segmentId, applyScriptPatches);
|
initializeObjectsSci11(segMan, segmentId, applyScriptPatches);
|
||||||
#ifdef ENABLE_SCI32
|
#ifdef ENABLE_SCI32
|
||||||
else if (getSciVersion() == SCI_VERSION_3)
|
else
|
||||||
initializeObjectsSci3(segMan, segmentId, applyScriptPatches);
|
initializeObjectsSci3(segMan, segmentId, applyScriptPatches);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user