Skip to content

Commit

Permalink
Fix a bug where warheads that were not listed would not get their val…
Browse files Browse the repository at this point in the history
…ues read properly
  • Loading branch information
ZivDero committed Feb 17, 2025
1 parent f88476e commit ce802b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/extensions/rules/rulesext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down

0 comments on commit ce802b6

Please sign in to comment.