Update of bug #13317 (project wesnoth):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
Reproduced. Added a backtrace for other devs (interesting things are
#23-#20). since 'attacks' is supposed (it the wiki documentation) to return
the list of all possible attacks, this is definitely a bug in the evaluation
of the 'attacks'.
#0 0xb7f54424 in __kernel_vsyscall ()
#1 0xb7888e96 in nanosleep () from /lib/i686/cmov/libc.so.6
#2 0xb7edd748 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#3 0x083a017c in gui2::twindow::show (this=0xebc0f20, restore=true)
at src/gui/widgets/window.cpp:249
#4 0x0833be43 in gui2::tdialog::show (this=0xe290a20, vid...@0xbfa6ff6c)
at src/gui/dialogs/dialog.cpp:43
#5 0x08349040 in gui2::show_wml_message (left_side=true, vid...@0xbfa6ff6c,
tit...@0xbfa6bb6c, messa...@0xbfa6bca8, portra...@0xbfa6bb70,
mirror=false, has_input=false, input_capti...@0xbfa6bb28,
input_text=0xbfa6bb24, maximum_length=256, option_li...@0xbfa6bb60,
chosen_option=0xbfa6bb48) at src/gui/dialogs/wml_message.cpp:260
#6 0x08120634 in wml_func_message (handl...@0xa0c6b60,
event_in...@0xbfa6c7d4, c...@0xbfa6be74) at src/game_events.cpp:3099
#7 0x0811c863 in game_events::command_handlers::call_handler
(this=0x89939c0,
c...@0xbfa6be7c, e...@0xa0c6b60, event_in...@0xbfa6c7d4, c...@0xbfa6be74)
at src/game_events.cpp:274
#8 0x0811ca0c in game_events::event_handler::handle_event_command (
this=0xa0c6b60, event_in...@0xbfa6c7d4, c...@0xbfa6be7c, cfg=
{cfg_ = 0xbfa6be74, cache_key_ = 0x0}) at src/game_events.cpp:3473
#9 0x0811cd36 in game_events::event_handler::handle_event (this=0xa0c6b60,
event_in...@0xbfa6c7d4, conf={cfg_ = 0xbfa6c2a0, cache_key_ = 0x0})
at src/game_events.cpp:3457
#10 0x08124680 in wml_func_object (handl...@0xa0c6b60,
event_in...@0xbfa6c7d4,
c...@0xbfa6c3a4) at src/game_events.cpp:2039
#11 0x0811c863 in game_events::command_handlers::call_handler
(this=0x89939c0,
c...@0xbfa6c3ac, e...@0xa0c6b60, event_in...@0xbfa6c7d4, c...@0xbfa6c3a4)
at src/game_events.cpp:274
#12 0x0811ca0c in game_events::event_handler::handle_event_command (
this=0xa0c6b60, event_in...@0xbfa6c7d4, c...@0xbfa6c3ac, cfg=
{cfg_ = 0xbfa6c3a4, cache_key_ = 0x0}) at src/game_events.cpp:3473
#13 0x0811cd36 in game_events::event_handler::handle_event (this=0xa0c6b60,
event_in...@0xbfa6c7d4, conf={cfg_ = 0xbfa6c764, cache_key_ = 0xf})
at src/game_events.cpp:3457
#14 0x0811e4b0 in process_event (handl...@0xa0c6b60, e...@0xbfa6c7d4)
at src/game_events.cpp:3422
#15 0x081259ee in game_events::pump () at src/game_events.cpp:3783
#16 0x08125bd7 in game_events::fire (eve...@0xbfa6d6ec, lo...@0xbfa6ca0c,
lo...@0xbfa6ca00, da...@0xbfa6c994) at src/game_events.cpp:3719
#17 0x084555c7 in attack::fire_event (this=0xbfa6d844, n...@0xbfa6d6ec)
at src/actions.cpp:770
#18 0x0845fca2 in attack (this=0xbfa6d844, g...@0xaa18f28, m...@0xbfa6ef8c,
tea...@0xbfa6ef50, attacker=
{x = 28, y = 14, static null_location = {x = -1000, y = -1000, static
null_location = <same as static member of an already seen type>}}, defender=
{x = 28, y = 15, static null_location = {x = -1000, y = -1000, static
null_location = <same as static member of an already seen type>}},
attack_with=0, defend_with=1, uni...@0xbfa6f064, sta...@0xbfa6ef60,
update_display=true) at src/actions.cpp:1543
#19 0x085e1787 in ai_interface::attack_enemy (this=0xbbc6738, u=
{x = 28, y = 14, static null_location = {x = -1000, y = -1000, static
null_location = <same as static member of an already seen type>}}, target=
{x = 28, y = 15, static null_location = {x = -1000, y = -1000, static
null_location = <same as static member of an already seen type>}}, weapon=0,
def_weapon=1) at src/ai.cpp:1257
#20 0x085e1c81 in ai::attack_enemy (this=0xbbc6738,
attacking_un...@0xda45c00,
targ...@0xdb72ae4, att_weapon=0, def_weapon=1) at src/ai.cpp:734
#21 0x084b725e in formula_ai::execute_variant (this=0xbbc6738,
v...@0xbfa6df34, commandline=true) at src/formula_ai.cpp:2086
#22 0x084b9ddd in formula_ai::evaluate (this=0xbbc6738,
formula_s...@0xbfa6e194) at src/formula_ai.cpp:1753
#23 0x08476283 in ai_manager::evaluate_command (i...@0xbfa6e110,
s...@0xbfa6e194)
at src/ai_manager.cpp:267
#24 0x084f52c2 in events::menu_handler::do_ai_formula (this=0xbfa6eee8,
s...@0xbfa6e194, team_num=1) at src/menu_events.cpp:3103
#25 0x085356fc in play_controller::enter_textbox (this=0xbfa6edf0)
at src/play_controller.cpp:661
#26 0x08535882 in play_controller::process_keydown_event (this=0xbfa6edf0,
eve...@0xb36e4b0) at src/play_controller.cpp:735
#27 0x08492daf in controller_base::handle_event (this=0xbfa6edf0,
eve...@0xb36e4b0) at src/controller_base.cpp:58
#28 0x086dfb49 in events::pump () at src/events.cpp:382
#29 0x08492b27 in controller_base::play_slice (this=0xbfa6edf0)
at src/controller_base.cpp:185
#30 0x08212ed2 in playsingle_controller::play_human_turn (this=0xbfa6edf0)
at src/playsingle_controller.cpp:716
#31 0x082131ab in playsingle_controller::play_side (this=0xbfa6edf0,
team_index=1, save=true) at src/playsingle_controller.cpp:617
#32 0x08213d65 in playsingle_controller::play_turn (this=0xbfa6edf0,
save=true)
at src/playsingle_controller.cpp:571
#33 0x082162b9 in playsingle_controller::play_scenario (this=0xbfa6edf0,
sto...@0xbfa6f65c, l...@0xbfa6fea0, skip_replay=false,
end_level_result=0xa0bc5c0) at src/playsingle_controller.cpp:317
#34 0x08203674 in playsingle_scenario (game_conf...@0xbfa6ffa8,
level=0x9e274f8, di...@0x9431eb8, state_of_ga...@0xbfa70004,
sto...@0xbfa6f65c, l...@0xbfa6fea0, skip_replay=false,
end_level=0xa0bc5c0)
at src/playcampaign.cpp:132
#35 0x08207942 in play_game (di...@0x9431eb8, gamesta...@0xbfa70004,
game_conf...@0xbfa6ffa8, l...@0xbfa6fea0, io_type=IO_NONE,
skip_replay=false) at src/playcampaign.cpp:368
#36 0x0806926c in play_test (this=0xbfa6ff5c) at src/game.cpp:652
#37 0x0806b5d8 in do_gameloop (argc=4, argv=0xbfa70414) at src/game.cpp:2048
#38 0x0806c358 in main (argc=4, argv=0xbfa70414) at src/game.cpp:2221
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13317>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs