Changed SI_ enum to the official EFST_ enum (#2995)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user