summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 04f5532cc..b726e6b2f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10306,8 +10306,15 @@ int buildin_rid2name(struct script_state *st){
case BL_NPC:
push_str(st->stack,C_CONSTSTR,((struct npc_data *)bl)->exname);
break;
+ case BL_PET:
+ push_str(st->stack,C_CONSTSTR,((struct pet_data *)bl)->name);
+ break;
+ case BL_HOMUNCULUS:
+ push_str(st->stack,C_CONSTSTR,((struct homun_data *)bl)->name);
+ break;
default:
ShowError("buildin_rid2name: BL type unknown.\n");
+ push_str(st->stack,C_CONSTSTR,"");
break;
}
}