Changeset - r14088:6b9456d5d475
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-12-27 13:38:08
smatz@openttd.org
(svn r18645) -Fix [FS#3433](r942): out-of-bounds access in the 'Start new multiplayer game' GUI
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -1139,8 +1139,8 @@ struct NetworkStartServerWindow : public
 
		GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0xD7);  // black background of maps list
 

	
 
		for (uint pos = this->vscroll.GetPosition(); pos < _fios_items.Length() + 1; pos++) {
 
			const FiosItem *item = _fios_items.Get(pos - 1);
 
			if (item == this->map || (pos == 0 && this->map == NULL)) {
 
			const FiosItem *item = (pos == 0) ? NULL : _fios_items.Get(pos - 1);
 
			if (item == this->map) { // this->map == NULL for first item
 
				GfxFillRect(r.left + 1, y, r.right - 1, y + FONT_HEIGHT_NORMAL - 1, 155); // show highlighted item with a different colour
 
			}
 

	
0 comments (0 inline, 0 general)