summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-26 11:17:14 +0200
committerHaru <haru@dotalux.com>2016-01-06 15:09:55 +0100
commit829ebdd1527a7a4a585056463f8871d926698e2d (patch)
treedb7a21cf1f33a05896793f9500580b969ca914ba /src/map/script.c
parentb040c619b505fd7423576f88bb0fe7de35848d3d (diff)
downloadhercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.gz
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.bz2
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.tar.xz
hercules-829ebdd1527a7a4a585056463f8871d926698e2d.zip
Change all TBL_PET to struct pet_data as per style guidelines
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 51f18dfb6..66db534d7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13623,7 +13623,7 @@ BUILDIN(recovery)
BUILDIN(getpetinfo)
{
struct map_session_data *sd = script->rid2sd(st);
- TBL_PET *pd;
+ struct pet_data *pd;
int type=script_getnum(st,2);
if (sd == NULL || sd->pd == NULL) {
@@ -16386,7 +16386,7 @@ BUILDIN(rid2name) {
case BL_MOB: script_pushstrcopy(st, ((struct mob_data *)bl)->name); break;
case BL_PC: script_pushstrcopy(st, ((struct map_session_data *)bl)->status.name); break;
case BL_NPC: script_pushstrcopy(st, ((struct npc_data *)bl)->exname); break;
- case BL_PET: script_pushstrcopy(st,((TBL_PET*)bl)->pet.name); break;
+ case BL_PET: script_pushstrcopy(st, ((struct pet_data *)bl)->pet.name); break;
case BL_HOM: script_pushstrcopy(st, ((struct homun_data *)bl)->homunculus.name); break;
case BL_MER: script_pushstrcopy(st, ((struct mercenary_data *)bl)->db->name); break;
default:
@@ -16611,7 +16611,7 @@ BUILDIN(unitattack) {
((struct mob_data *)unit_bl)->target_id = target_bl->id;
break;
case BL_PET:
- ((TBL_PET *)unit_bl)->target_id = target_bl->id;
+ ((struct pet_data *)unit_bl)->target_id = target_bl->id;
break;
default:
ShowError("script:unitattack: unsupported source unit type %d\n", unit_bl->type);