Skip to content

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

@Asdow

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( ))) )

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