|
@@ -1220,7 +1220,7 @@ static void clif_set_unit_idle( struct block_list* bl, bool walking, send_target
|
|
#endif
|
|
#endif
|
|
/* Might be earlier, this is when the named item bug began */
|
|
/* Might be earlier, this is when the named item bug began */
|
|
#if PACKETVER >= 20131223
|
|
#if PACKETVER >= 20131223
|
|
- safestrncpy(p.name, status_get_name( bl ), NAME_LENGTH);
|
|
|
|
|
|
+ safestrncpy(p.name, status_get_name( *bl ), NAME_LENGTH);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
clif_send( &p, sizeof( p ), tbl, target );
|
|
clif_send( &p, sizeof( p ), tbl, target );
|
|
@@ -1361,7 +1361,7 @@ static void clif_spawn_unit( struct block_list *bl, enum send_target target ){
|
|
#endif
|
|
#endif
|
|
/* Might be earlier, this is when the named item bug began */
|
|
/* Might be earlier, this is when the named item bug began */
|
|
#if PACKETVER >= 20131223
|
|
#if PACKETVER >= 20131223
|
|
- safestrncpy( p.name, status_get_name( bl ), NAME_LENGTH );
|
|
|
|
|
|
+ safestrncpy( p.name, status_get_name( *bl ), NAME_LENGTH );
|
|
#endif
|
|
#endif
|
|
|
|
|
|
if( disguised( bl ) ){
|
|
if( disguised( bl ) ){
|
|
@@ -1463,7 +1463,7 @@ static void clif_set_unit_walking( struct block_list& bl, map_session_data* tsd,
|
|
#endif
|
|
#endif
|
|
/* Might be earlier, this is when the named item bug began */
|
|
/* Might be earlier, this is when the named item bug began */
|
|
#if PACKETVER >= 20131223
|
|
#if PACKETVER >= 20131223
|
|
- safestrncpy(p.name, status_get_name( &bl ), NAME_LENGTH);
|
|
|
|
|
|
+ safestrncpy(p.name, status_get_name( bl ), NAME_LENGTH);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
clif_send( &p, sizeof(p), tsd ? &tsd->bl : &bl, target );
|
|
clif_send( &p, sizeof(p), tsd ? &tsd->bl : &bl, target );
|
|
@@ -14649,7 +14649,7 @@ void clif_parse_GMKick(int32 fd, map_session_data *sd)
|
|
case BL_PC:
|
|
case BL_PC:
|
|
{
|
|
{
|
|
char command[NAME_LENGTH+6];
|
|
char command[NAME_LENGTH+6];
|
|
- safesnprintf(command,sizeof(command),"%ckick %s", atcommand_symbol, status_get_name(target));
|
|
|
|
|
|
+ safesnprintf(command,sizeof(command),"%ckick %s", atcommand_symbol, status_get_name(*target));
|
|
is_atcommand(fd, sd, command, 1);
|
|
is_atcommand(fd, sd, command, 1);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -14664,7 +14664,7 @@ void clif_parse_GMKick(int32 fd, map_session_data *sd)
|
|
clif_GM_kickack(sd, 0);
|
|
clif_GM_kickack(sd, 0);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- safesnprintf(command,sizeof(command),"/kick %s (%d)", status_get_name(target), status_get_class(target));
|
|
|
|
|
|
+ safesnprintf(command,sizeof(command),"/kick %s (%d)", status_get_name(*target), status_get_class(target));
|
|
log_atcommand(sd, command);
|
|
log_atcommand(sd, command);
|
|
status_percent_damage(&sd->bl, target, 100, 0, true); // can invalidate 'target'
|
|
status_percent_damage(&sd->bl, target, 100, 0, true); // can invalidate 'target'
|
|
}
|
|
}
|