From 763db7a11a5254e6c6beaaec2ea71a464d2b45ab Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 9 Feb 2020 01:15:03 +0000 Subject: [PATCH] Fix conn_type enum order DiabloUI selconn.cp relies on the enum values to be ordered in the same way as the UI items (e.g. for keyboard navigation). This restores the order to what it was prior to: https://github.com/diasurgical/devilutionX/commit/4e29a4b8aa728c1aa65b0686f82ac441d54af780 --- enums.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enums.h b/enums.h index 2ed540b59..a2ebd3e21 100644 --- a/enums.h +++ b/enums.h @@ -2920,11 +2920,11 @@ typedef enum dlrg_flag { } dlrg_flag; typedef enum conn_type { - SELCONN_LOOPBACK = 0, #ifndef NONET SELCONN_TCP, #ifdef BUGGY SELCONN_UDP, #endif #endif + SELCONN_LOOPBACK, } conn_type;