Skip to content

Crash when clicking the board with empty hand #462

@josephcsible

Description

@josephcsible

In Seuphorica, if you click certain spots on the board while your hand is empty, the game will crash. The problem is here:

for(auto& s: snapshots) s.erase(drawn[0].id);

drawn is empty there, so accessing drawn[0] results in a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions