Skip to content

nullptr dereference when moving mouse to map edge in tactical #3

Description

@Asdow

How to replicate: In Drassen, assign someone to helicopter, go to tactical and move the mouse to any map edge.

Game will crash due to nullptr dereference in strategicmap.cpp line 4941 when GetSoldierStructureForVehicle returns 0 for the soldier who's inside helicopter.

if ( OK_CONTROLLABLE_MERC( pSoldier ) && (pSoldier->bAssignment == CurrentSquad( ) || (pSoldier->bAssignment == VEHICLE && GetSoldierStructureForVehicle( pSoldier->iVehicleId )->bAssignment == CurrentSquad( ))) )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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