Skip to content

Commit

Permalink
Fix #139 sub_6FCFEDD0 nRange => nMissileId
Browse files Browse the repository at this point in the history
  • Loading branch information
Lectem committed Jan 27, 2024
1 parent 03f58cd commit d0e62df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/D2Game/src/SKILLS/SkillDruid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,14 +688,14 @@ int32_t __fastcall sub_6FCFEDD0(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc
EVENT_SetEvent(pGame, pTarget, UNITEVENTCALLBACK_REMOVESTATE, nExpireFrame, 0, 0);
sub_6FCFE0E0(pUnit, pStatList, pSkillsTxtRecord, nSkillId, nSkillLevel);

const int32_t nRange = SKILLS_GetProgressiveSkillMissileId(pUnit, nSkillId);
if (nRange <= 0)
const int32_t nMissileId = SKILLS_GetProgressiveSkillMissileId(pUnit, nSkillId);
if (nMissileId <= 0)
{
return 1;
}

D2MissileStrc missileParams = {};
missileParams.nMissile = nRange;
missileParams.nMissile = nMissileId;
missileParams.nRange = nTimeout;
missileParams.dwFlags = 32768;
missileParams.pOwner = pTarget;
Expand Down

0 comments on commit d0e62df

Please sign in to comment.