Changed SI_ enum to the official EFST_ enum (#2995)

This commit is contained in:
Lemongrass3110
2018-04-20 18:24:20 +02:00
committed by GitHub
parent 24abd2a4ee
commit d13d6a6e19
15 changed files with 3964 additions and 1966 deletions

View File

@@ -21724,7 +21724,7 @@ BUILDIN_FUNC(montransform) {
**/
BUILDIN_FUNC(bonus_script) {
uint16 flag = 0;
int16 icon = SI_BLANK;
int16 icon = EFST_BLANK;
uint32 dur;
uint8 type = 0;
TBL_PC* sd;
@@ -21751,8 +21751,8 @@ BUILDIN_FUNC(bonus_script) {
return SCRIPT_CMD_FAILURE;
}
if (icon <= SI_BLANK || icon >= SI_MAX)
icon = SI_BLANK;
if (icon <= EFST_BLANK || icon >= EFST_MAX)
icon = EFST_BLANK;
if ((entry = pc_bonus_script_add(sd, script_str, dur, (enum si_type)icon, flag, type))) {
linkdb_insert(&sd->bonus_script.head, (void *)((intptr_t)entry), entry);