URL:
<http://gna.org/bugs/?9302>
Summary: unit_display.cpp about l.169 array subscript out of
range error
Project: Battle for Wesnoth
Submitted by: grouchydan
Submitted on: Saturday 06/09/2007 at 09:54
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.3.3
Operating System: Windows XP
_______________________________________________________
Details:
During testing of my Microsoft Visual C++ Express debug build, in the second
tutorial scenario, with wolf riders swimming around the island and harassing
archers, I experienced a debug error, "array subscript out of range", in the
move_unit() function. The offending line of code:
u.set_facing(path[path.size()-2].get_relative_dir(path[path.size()-1]));
I investigated a bit in the debugger; path.size() was 1, and path[-1]
triggered the exception. Then, (sadly) I discovered that simply commenting
out the entire line of code (!!!) "fixed" the problem with no discernible
effects.
Hope this helps someone a little bit.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9302>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs