diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-08 23:48:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-06-02 00:23:24 +0300 |
commit | 62ee0d94b98493e60d41c8a5a3ec27a7246a21e9 (patch) | |
tree | ad84b668d993e81b1a0f271ce60c1b8aa661a1a9 /src/char | |
parent | e7e25d4030ddd4b5a6e48af3f2dc48dcf6039570 (diff) | |
download | hercules-62ee0d94b98493e60d41c8a5a3ec27a7246a21e9.tar.gz hercules-62ee0d94b98493e60d41c8a5a3ec27a7246a21e9.tar.bz2 hercules-62ee0d94b98493e60d41c8a5a3ec27a7246a21e9.tar.xz hercules-62ee0d94b98493e60d41c8a5a3ec27a7246a21e9.zip |
Add define MAX_HOTKEYS_DB for max stored hotkeys in db
For new RE clients it's double of MAX_HOTKEYS
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 44225ecb5..81856a25d 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1415,7 +1415,7 @@ static int char_mmo_char_fromsql(int char_id, struct mmo_charstatus *p, bool loa while( SQL_SUCCESS == SQL->StmtNextRow(stmt) ) { - if( hotkey_num >= 0 && hotkey_num < MAX_HOTKEYS ) + if( hotkey_num >= 0 && hotkey_num < MAX_HOTKEYS_DB ) memcpy(&p->hotkeys[hotkey_num], &tmp_hotkey, sizeof(tmp_hotkey)); else ShowWarning("chr->mmo_char_fromsql: ignoring invalid hotkey (hotkey=%d,type=%u,id=%u,lv=%u) of character %s (AID=%d,CID=%d)\n", hotkey_num, tmp_hotkey.type, tmp_hotkey.id, tmp_hotkey.lv, p->name, p->account_id, p->char_id); |