Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Crashes on first start in wrappers.cpp:94 because of 0 resolution (SIGFPE) #2822

@wzdev-ci

Description

@wzdev-ci

resolution_fixed type_bug | by glogow@...


If the game is started for the first time without a config, the resolution is set to 0 / 0, which will crash the game at @subject because boxHeight will be 0 and causes a SIGFPE (divide by 0).

The attached patch always sets a "sane" default config resolution (640 / 480), so the game won't crash instantly on start.


Issue migrated from trac:2822 at 2022-04-16 08:28:46 -0700

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions