1
0
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:
Filip Gawin 2018-11-16 15:11:27 +01:00
parent 0322b5c6b9
commit 4adcaa670c

View File

@ -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());
}
}
}