summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-17 03:47:08 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-17 03:47:08 +0000
commit9de2d5b94f2b4ba057f550294734a576abd6ac0c (patch)
treed287905e583d7064864639eff5f98ecc85f86135 /src
parentecab838ab5c3db67357d554e23e4f6775160d743 (diff)
downloadhercules-9de2d5b94f2b4ba057f550294734a576abd6ac0c.tar.gz
hercules-9de2d5b94f2b4ba057f550294734a576abd6ac0c.tar.bz2
hercules-9de2d5b94f2b4ba057f550294734a576abd6ac0c.tar.xz
hercules-9de2d5b94f2b4ba057f550294734a576abd6ac0c.zip
* Fixed compiler warning in script.c get_mob_data.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5635 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 9b4690ca7..7de21a76f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10015,31 +10015,31 @@ int buildin_getmobdata(struct script_state *st) {
} else {
num=st->stack->stack_data[st->start+2].u.num;
name=(char *)(str_buf+str_data[num&0x00ffffff].str);
- setd_sub(map_id2sd(st->rid),name,0,(void *)md->class_);
- setd_sub(map_id2sd(st->rid),name,1,(void *)md->level);
- setd_sub(map_id2sd(st->rid),name,2,(void *)md->hp);
- setd_sub(map_id2sd(st->rid),name,3,(void *)md->max_hp);
- setd_sub(map_id2sd(st->rid),name,4,(void *)md->master_id);
- setd_sub(map_id2sd(st->rid),name,5,(void *)md->bl.m);
- setd_sub(map_id2sd(st->rid),name,6,(void *)md->bl.x);
- setd_sub(map_id2sd(st->rid),name,7,(void *)md->bl.y);
- setd_sub(map_id2sd(st->rid),name,8,(void *)md->speed);
- setd_sub(map_id2sd(st->rid),name,9,(void *)md->mode);
- setd_sub(map_id2sd(st->rid),name,10,(void *)md->state.state);
- setd_sub(map_id2sd(st->rid),name,11,(void *)md->special_state.ai);
- setd_sub(map_id2sd(st->rid),name,12,(void *)md->db->option);
- setd_sub(map_id2sd(st->rid),name,13,(void *)md->db->sex);
- setd_sub(map_id2sd(st->rid),name,14,(void *)md->db->view_class);
- setd_sub(map_id2sd(st->rid),name,15,(void *)md->db->hair);
- setd_sub(map_id2sd(st->rid),name,16,(void *)md->db->hair_color);
- setd_sub(map_id2sd(st->rid),name,17,(void *)md->db->head_buttom);
- setd_sub(map_id2sd(st->rid),name,18,(void *)md->db->head_mid);
- setd_sub(map_id2sd(st->rid),name,19,(void *)md->db->head_top);
- setd_sub(map_id2sd(st->rid),name,20,(void *)md->db->clothes_color);
- setd_sub(map_id2sd(st->rid),name,21,(void *)md->db->equip);
- setd_sub(map_id2sd(st->rid),name,22,(void *)md->db->weapon);
- setd_sub(map_id2sd(st->rid),name,23,(void *)md->db->shield);
- setd_sub(map_id2sd(st->rid),name,24,(void *)md->dir);
+ setd_sub(map_id2sd(st->rid),name,0,(void *)(int)md->class_);
+ setd_sub(map_id2sd(st->rid),name,1,(void *)(int)md->level);
+ setd_sub(map_id2sd(st->rid),name,2,(void *)(int)md->hp);
+ setd_sub(map_id2sd(st->rid),name,3,(void *)(int)md->max_hp);
+ setd_sub(map_id2sd(st->rid),name,4,(void *)(int)md->master_id);
+ setd_sub(map_id2sd(st->rid),name,5,(void *)(int)md->bl.m);
+ setd_sub(map_id2sd(st->rid),name,6,(void *)(int)md->bl.x);
+ setd_sub(map_id2sd(st->rid),name,7,(void *)(int)md->bl.y);
+ setd_sub(map_id2sd(st->rid),name,8,(void *)(int)md->speed);
+ setd_sub(map_id2sd(st->rid),name,9,(void *)(int)md->mode);
+ setd_sub(map_id2sd(st->rid),name,10,(void *)(int)md->state.state);
+ setd_sub(map_id2sd(st->rid),name,11,(void *)(int)md->special_state.ai);
+ setd_sub(map_id2sd(st->rid),name,12,(void *)(int)md->db->option);
+ setd_sub(map_id2sd(st->rid),name,13,(void *)(int)md->db->sex);
+ setd_sub(map_id2sd(st->rid),name,14,(void *)(int)md->db->view_class);
+ setd_sub(map_id2sd(st->rid),name,15,(void *)(int)md->db->hair);
+ setd_sub(map_id2sd(st->rid),name,16,(void *)(int)md->db->hair_color);
+ setd_sub(map_id2sd(st->rid),name,17,(void *)(int)md->db->head_buttom);
+ setd_sub(map_id2sd(st->rid),name,18,(void *)(int)md->db->head_mid);
+ setd_sub(map_id2sd(st->rid),name,19,(void *)(int)md->db->head_top);
+ setd_sub(map_id2sd(st->rid),name,20,(void *)(int)md->db->clothes_color);
+ setd_sub(map_id2sd(st->rid),name,21,(void *)(int)md->db->equip);
+ setd_sub(map_id2sd(st->rid),name,22,(void *)(int)md->db->weapon);
+ setd_sub(map_id2sd(st->rid),name,23,(void *)(int)md->db->shield);
+ setd_sub(map_id2sd(st->rid),name,24,(void *)(int)md->dir);
}
return 0;
}