summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 20:09:48 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 20:09:48 +0000
commit3a582ad4976cd2672e22a33cd738346e5e09a9bd (patch)
tree96c96053b68a39b88c7d02d223a0121068360afd /src/map/pc.c
parent4a1f72fa69ae327bad1d6608a307a625d2c687f2 (diff)
downloadhercules-3a582ad4976cd2672e22a33cd738346e5e09a9bd.tar.gz
hercules-3a582ad4976cd2672e22a33cd738346e5e09a9bd.tar.bz2
hercules-3a582ad4976cd2672e22a33cd738346e5e09a9bd.tar.xz
hercules-3a582ad4976cd2672e22a33cd738346e5e09a9bd.zip
* Added jA 1084's fix to mob.c
* Changed pc_alive_timer to use map_id2sd - should be more accurate git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@758 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 09ff43733..151ec47a3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7853,7 +7853,8 @@ int map_night_timer(int tid, unsigned int tick, int id, int data) { // by [yor]
*/
int pc_alive_timer(int tid,unsigned int tick,int id,int data)
{
- struct map_session_data *sd=(struct map_session_data*)map_id2bl(id);
+ //struct map_session_data *sd=(struct map_session_data*)map_id2bl(id);
+ struct map_session_data *sd=map_id2sd(id); // more accurate [celest]
nullpo_retr(0, sd);
if(sd->alive_timer != tid)
return 0;