URL:
<http://gna.org/bugs/?9301>
Summary: map.cpp line 304 causes invalid iterator debug
break
Project: Battle for Wesnoth
Submitted by: grouchydan
Submitted on: Saturday 06/09/2007 at 09:39
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:
I compiled 1.3.3 source with Microsoft VisualC++ Express, and the debug build
terminates program execution with an invalid iterator error. Function is
gamemap::read(), towards end, under comment
// post processing on the map
const int width = tiles_.size();
const int height = tiles_[0].size(); // this line causes error
when I change the second line to
const int height = width > 0 ? tiles_[0].size() : 0;
the error goes away and the program works fine. (I don't profess to be a
great programmer, btw.) I've tested this build through the start of
"Crossroads" in HttT. Not sure how important this is in the larger scheme of
what's happening in this part of the galaxy, though.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9301>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs