mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Use operator ? to simplify condition
This commit is contained in:
parent
0322b5c6b9
commit
4adcaa670c
@ -527,13 +527,8 @@ void GameData::loadIFP(const std::string& name, bool cutsceneAnimation) {
|
||||
|
||||
if (f.data) {
|
||||
if (LoaderIFP loader{}; loader.loadFromMemory(f.data.get())) {
|
||||
if (cutsceneAnimation) {
|
||||
animationsCutscene.insert(loader.animations.begin(),
|
||||
loader.animations.end());
|
||||
} else {
|
||||
animations.insert(loader.animations.begin(),
|
||||
loader.animations.end());
|
||||
}
|
||||
auto& dest = cutsceneAnimation ? animationsCutscene : animations;
|
||||
dest.insert(loader.animations.begin(), loader.animations.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user