Refactor a few functions to use sd lookup

This commit is contained in:
aleos
2024-05-03 16:26:42 -04:00
parent 060629bd17
commit 074fdfbd5c
6 changed files with 22 additions and 22 deletions

View File

@@ -11574,7 +11574,7 @@ bool is_atcommand(const int fd, map_session_data* sd, const char* message, int t
struct map_data *mapdata = map_getmapdata(sd->bl.m);
if (mapdata->zone->isCommandDisabled(info->command, pc_get_group_level(sd))) {
if (mapdata->zone->isCommandDisabled(info->command, *sd)) {
clif_messagecolor(&sd->bl, color_table[COLOR_RED], msg_txt(sd, 832), false, SELF); // This command is disabled on this map.
return true;
}