Skip to content

Fix getting wrong entity from target#1

Open
lL1l1 wants to merge 2 commits into
Strogoo:fixBeamWeaponsfrom
FAForever:strogo-fix
Open

Fix getting wrong entity from target#1
lL1l1 wants to merge 2 commits into
Strogoo:fixBeamWeaponsfrom
FAForever:strogo-fix

Conversation

@lL1l1

@lL1l1 lL1l1 commented Feb 18, 2026

Copy link
Copy Markdown

It was getting the entity from the target entity's dirty list (*target->weakptr(+4) = entityWeakObj, entityWeakObj+0x5C = Entity+0x60 = Entity.DirtyList aka updatechain) instead of the actual target entity (entityWeakObj-4 = Entity).

It was getting the entity from the target entity's dirty list (*target->weakptr(+4) = entityWeakObj, entityWeakObj+0x5C = Entity+0x60 = Entity.DirtyList aka updatechain) instead of the actual target entity (entityWeakObj-4 = Entity).
breaks auto-attack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant