From ce802b6995bce741fbf3300132b117d7f34a0645 Mon Sep 17 00:00:00 2001 From: ZivDero Date: Mon, 17 Feb 2025 12:29:31 +0300 Subject: [PATCH] Fix a bug where warheads that were not listed would not get their values read properly --- src/extensions/rules/rulesext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/extensions/rules/rulesext.cpp b/src/extensions/rules/rulesext.cpp index ae398db3f..369e0afc3 100644 --- a/src/extensions/rules/rulesext.cpp +++ b/src/extensions/rules/rulesext.cpp @@ -330,6 +330,15 @@ void RulesClassExtension::Process(CCINIClass &ini) This()->CombatDamage(ini); This()->AudioVisual(ini); This()->SpecialWeapons(ini); + + /** + * Note: The game re-reads INI values for warheads at the end of + * SpecialWeapons(), so we do the same here for our extensions. + */ + for (int i = 0; i < WarheadTypeExtensions.Count(); i++) { + WarheadTypeExtensions[i]->Read_INI(ini); + } + //TiberiumClass::Process(ini); /**