From 62ee0d94b98493e60d41c8a5a3ec27a7246a21e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 May 2019 23:48:48 +0300 Subject: Add define MAX_HOTKEYS_DB for max stored hotkeys in db For new RE clients it's double of MAX_HOTKEYS --- src/common/mmo.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/mmo.h b/src/common/mmo.h index eb74d62b3..c62fd31d0 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -151,6 +151,12 @@ #endif // 20090603 #endif // 20070227 +#if PACKETVER_RE_NUM >= 20190508 +#define MAX_HOTKEYS_DB ((MAX_HOTKEYS) * 2) +#else +#define MAX_HOTKEYS_DB MAX_HOTKEYS +#endif + #if PACKETVER >= 20150805 /* Cart Decoration */ #define CART_DECORATION #define MAX_CARTDECORATION_CARTS 3 // Currently there are 3 Carts available in kRO. [Frost] @@ -732,7 +738,7 @@ struct mmo_charstatus { struct s_friend friends[MAX_FRIENDS]; //New friend system [Skotlex] #ifdef HOTKEY_SAVING - struct hotkey hotkeys[MAX_HOTKEYS]; + struct hotkey hotkeys[MAX_HOTKEYS_DB]; #endif bool show_equip; bool allow_party; -- cgit v1.2.3-70-g09d2