Skip to content

Conversation

@cursor
Copy link

@cursor cursor bot commented Dec 5, 2025

Add null checks to ASentryTowerTurret::Shoot to prevent crashes when ProjectileType is unset or projectile spawning fails.

The ProjectileType can become null (e.g., when the 'Wrath' modifier is selected), causing SpawnActor to return nullptr. Subsequent attempts to access members of the null Projectile pointer lead to an EXCEPTION_ACCESS_VIOLATION_WRITE. This PR adds checks to ensure ProjectileType is valid and that a projectile was successfully spawned before attempting to access its members.


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