Follow up to 2043c95

Fixes #2102

Thanks to @whupdo
This commit is contained in:
Lemongrass3110 2017-05-23 00:02:34 +02:00
parent bba3da2fd7
commit 0fcc9b6be4
2 changed files with 9 additions and 4 deletions

View File

@ -2057,9 +2057,14 @@ int guild_castledataloadack(int len, struct guild_castle *gc) {
if( i != ev ) if( i != ev )
guild_request_info(c->guild_id); guild_request_info(c->guild_id);
else { // last owned one else { // last owned one
guild_npc_request_info(c->guild_id, script_config.agit_init_event_name); char event_name[EVENT_NAME_LENGTH];
guild_npc_request_info(c->guild_id, script_config.agit_init2_event_name);
guild_npc_request_info(c->guild_id, script_config.agit_init3_event_name); snprintf( event_name, EVENT_NAME_LENGTH, "::%s", script_config.agit_init_event_name );
guild_npc_request_info(c->guild_id, event_name);
snprintf( event_name, EVENT_NAME_LENGTH, "::%s", script_config.agit_init2_event_name );
guild_npc_request_info(c->guild_id, event_name);
snprintf( event_name, EVENT_NAME_LENGTH, "::%s", script_config.agit_init3_event_name );
guild_npc_request_info(c->guild_id, event_name);
} }
} }
} }

View File

@ -103,7 +103,7 @@ static struct view_data npc_viewdb2[MAX_NPC_CLASS2_END-MAX_NPC_CLASS2_START];
static struct script_event_s static struct script_event_s
{ //Holds pointers to the commonly executed scripts for speedup. [Skotlex] { //Holds pointers to the commonly executed scripts for speedup. [Skotlex]
struct event_data *event[UCHAR_MAX]; struct event_data *event[UCHAR_MAX];
const char *event_name[UCHAR_MAX]; const char *event_name[EVENT_NAME_LENGTH];
uint8 event_count; uint8 event_count;
} script_event[NPCE_MAX]; } script_event[NPCE_MAX];