diff options
author | skidd13 <skidd13@openttd.org> | 2008-05-29 16:47:22 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-05-29 16:47:22 +0000 |
commit | c624a20a32fb2c9dce2c21b4fbcb90f203074eeb (patch) | |
tree | 40aad5ec4c12e047fbf4aba228fd63499f7d7829 /src/network/network_gui.cpp | |
parent | 73cf52a7c42d4110b6ba54dcc71684cd630779dd (diff) | |
download | openttd-c624a20a32fb2c9dce2c21b4fbcb90f203074eeb.tar.xz |
(svn r13328) -Fix (r13327): Don't access an item when there isn't any
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 744bc5c42..2c3cc5721 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -427,7 +427,7 @@ public: if (id_v >= this->vscroll.cap) return; // click out of bounds 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(); } break; |