diff --git a/src/info.cpp b/src/info.cpp index 4619b7585..94a4c4fb5 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -513,8 +513,11 @@ void PClassActor::SetDamageFactor(FName type, double factor) { for (auto & p : ActorInfo()->DamageFactors) { - if (p.first == type) p.second = factor; - return; + if (p.first == type) + { + p.second = factor; + return; + } } ActorInfo()->DamageFactors.Push({ type, factor }); }