summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/editserverdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 9fa71b1f4..154dca6b4 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -21,6 +21,8 @@
#include "gui/windows/editserverdialog.h"
+#include "const/net/maxpacketversion.h"
+
#include "gui/models/typelistmodel.h"
#include "gui/windows/okdialog.h"
@@ -50,7 +52,7 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mNameField(new TextField(this, std::string())),
mDescriptionField(new TextField(this, std::string())),
mOnlineListUrlField(new TextField(this, std::string())),
- mPacketVersionField(new IntTextField(this, 0, 0, 20150805)),
+ mPacketVersionField(new IntTextField(this, 0, 0, maxPacketVersion)),
// TRANSLATORS: edit server dialog button
mConnectButton(new Button(this, _("Connect"), "connect", this)),
// TRANSLATORS: edit server dialog button