mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +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) {
|
||||
if (getSciVersion() <= SCI_VERSION_1_LATE)
|
||||
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);
|
||||
#ifdef ENABLE_SCI32
|
||||
else if (getSciVersion() == SCI_VERSION_3)
|
||||
else
|
||||
initializeObjectsSci3(segMan, segmentId, applyScriptPatches);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user