Skip to content

Conversation

@cursor
Copy link

@cursor cursor bot commented Dec 5, 2025

Guard turret firing to prevent null dereference when ProjectileType is null or SpawnActor fails.

The 'Wrath' modifier can set ProjectileType to null, causing SpawnActor to return nullptr. This PR adds checks to ensure ProjectileType is valid and that SpawnActor successfully created a projectile before attempting to access its members, preventing an EXCEPTION_ACCESS_VIOLATION_WRITE.


Open in Cursor Open in Web

@cursor
Copy link
Author

cursor bot commented Dec 5, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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