(svn r13328) -Fix (r13327): Don't access an item when there isn't any

This commit is contained in:
skidd13 2008-05-29 16:47:22 +00:00
parent a8abdaec92
commit bed7719967

View File

@ -427,7 +427,7 @@ public:
if (id_v >= this->vscroll.cap) return; // click out of bounds if (id_v >= this->vscroll.cap) return; // click out of bounds
id_v += this->vscroll.pos; id_v += this->vscroll.pos;
this->server = this->servers[id_v]; this->server = (id_v < this->servers.Length()) ? this->servers[id_v] : NULL;
this->SetDirty(); this->SetDirty();
} break; } break;