floating-point exception in some campaign scenarios
Bug #1035943 reported by
Hauke Henningsen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gl-117 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
gl-117 (1.3.2-2.1ubuntu1, under Ubuntu 12.04 LTS) crashes with a floating point exception under some scenarios.
According to gdb, the error occurs:
#0 0x000000000041189b in game_timer (dt=0) at main.cpp:3662
Obviously, the FPE happens because in line 3662 the expression (2000/dt) fails when dt is zero. The attached patch prevents game_timer being called with a zero argument, yet I'm not sure whether this is the "right" way to fix things.
To post a comment you must log in.
The attachment "Path for myTimerFunc, preventing dt from ever being 0." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]