You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. run around
2. a lot
What is the expected output? What do you see instead?
the game crashes
What version of the product are you using? On what operating system?
silvertree 0.2.1 compiled from source on debian/unstable on amd64
after running around a lot, the character gets slower, and after some time,
the game crashes in character.cpp line 221:
Program received signal SIGFPE, Arithmetic exception.
0x0000000000489722 in game_logic::character::move_cost (this=0x4082740,
terrain=<value optimized out>, feature=..., height_change=0) at
character.cpp:221
221 return (climb_cost*base_cost)/(speed()*100);
(gdb) p speed()
$1 = 0
(gdb) bt
#0 0x0000000000489722 in game_logic::character::move_cost (this=0x4082740,
terrain=<value optimized out>, feature=..., height_change=0) at
character.cpp:221
#1 0x00000000004c5344 in game_logic::party::movement_cost (this=0x40851b0,
src=..., dst=<value optimized out>) at party.cpp:324
#2 0x00000000004c4bac in game_logic::party::move (this=0x40851b0,
dir=hex::NORTH_WEST) at party.cpp:262
#3 0x00000000004d997d in game_logic::pc_party::do_turn (this=0x40851b0) at
pc_party.cpp:116
#4 0x00000000004c4ece in game_logic::party::play_turn (this=0x64) at
party.cpp:216
#5 0x000000000047760c in game_logic::world::play (this=0x404e610) at
world.cpp:782
#6 0x00000000004786f7 in game_logic::world::play (this=0x9d1130) at
world.cpp:671
#7 0x000000000040bef6 in main (argc=<value optimized out>, argv=<value
optimized out>) at main.cpp:197
(gdb)
Original issue reported on code.google.com by [email protected] on 2 Sep 2009 at 4:35
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 2 Sep 2009 at 4:35The text was updated successfully, but these errors were encountered: