Skip to content

[CODE] Physics gun pulling in objects causes a crash #358

@Nbc66

Description

@Nbc66

Describe the bug

using the physics gun to pull in objects from a distance causes a dynamic cast error to occur

Steps to reproduce

Steps to reproduce the behavior:

  1. try to pickup a object like a prop_physics or a grenade with the physics gun
  2. crash

Expected behavior

its expected of the object to be pulled in by the gravity gun and not crash the game


Additional context

it looks like the recent addition from 02e232b is to blame for this issue as the dynamic cast fails on this line specifically it doesn't matter what object it is it always fails to cast and a breakpoint get hit on the dynamic cast line you can check the call stack for more issues

NOTE: I compile the mapabse source code with the latest VS2022 V143 build tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions