Skip to content

Conversation

@Blixibon
Copy link
Member

This PR fixes a crash introduced with the latest update. Upon pulling an object with the gravity gun, the game would crash.

The issue was introduced with #266 and was due to the dynamic_cast seen here. The problem with this dynamic_cast was that it casted to pObj instead of pEntity. pObj refers to pEntity's physics object, rather than the entity itself. With this PR, I confirmed that the crash is resolved and the new output functions properly.

This resolves #358.


As a hotfix branch, this will be rebased directly into master. Please do not pull from this branch independently.

@Blixibon Blixibon merged commit 7976a21 into mapbase-source:master Jan 18, 2025
4 checks passed
@Blixibon Blixibon deleted the mapbase/hotfix/physgunpull-fix branch January 18, 2025 16:36
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.

[CODE] Physics gun pulling in objects causes a crash

1 participant