diff --git a/src/info.cpp b/src/info.cpp index 94a4c4fb5..1eee76fcd 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -532,8 +532,11 @@ void PClassActor::SetPainChance(FName type, int chance) { for (auto & p : ActorInfo()->PainChances) { - if (p.first == type) p.second = chance; - return; + if (p.first == type) + { + p.second = chance; + return; + } } if (chance >= 0)