summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 09:57:26 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 09:57:26 +0000
commit3b06b9a0e53e331621775afa0b6fe04ced300e51 (patch)
tree563ceace38b9803132e9ea9ddc1a4a99612eee32 /src/map/script.c
parentffcebec91192484588b2a5853782d026e5370f0c (diff)
downloadhercules-3b06b9a0e53e331621775afa0b6fe04ced300e51.tar.gz
hercules-3b06b9a0e53e331621775afa0b6fe04ced300e51.tar.bz2
hercules-3b06b9a0e53e331621775afa0b6fe04ced300e51.tar.xz
hercules-3b06b9a0e53e331621775afa0b6fe04ced300e51.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6771 54d463be-8e91-2dee-dedb-b68131a5f0ec
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;
}
}