ThePhrozenKeep / D2MOO

Reimplementation of the Diablo2 game coupled with patching facilities for modders.
MIT License
93 stars 29 forks source link

D2Game.0x6FC6FF10 #149

Closed silvermane-HU closed 9 months ago

silvermane-HU commented 9 months ago
void __fastcall D2GAME_BOSSES_AssignUMod_6FC6FF10(D2GameStrc* pGame, D2UnitStrc* pUnit, int32_t nUMod, int32_t bUnique)
{
...
for (int32_t i = 0; i < 9; ++i)
    {
        if (!pUMods[i])
        {
            pUMods[i] = nUMod;
            sub_6FC6F670(pUnit, nUMod, bUnique);
        }
    }

should be a break or return after the call, otherwise it fills the entire list with the same UMod