diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-29 22:08:09 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-29 22:08:09 +0000 |
commit | 455fad7b177bdcf242ab7e5c0c04d2045deb6873 (patch) | |
tree | 8478e92bec6f9881d287377923ccc6dbf2848327 /src/char_sql/int_homun.c | |
parent | 8a9600ded15d1846c9e38de0b660a0f6a72e20a9 (diff) | |
download | hercules-455fad7b177bdcf242ab7e5c0c04d2045deb6873.tar.gz hercules-455fad7b177bdcf242ab7e5c0c04d2045deb6873.tar.bz2 hercules-455fad7b177bdcf242ab7e5c0c04d2045deb6873.tar.xz hercules-455fad7b177bdcf242ab7e5c0c04d2045deb6873.zip |
- Fixed compiltation error ~.~ I was sure I compiled before the previous commit...
- Corrected a null pointer error when a non-player uses amplify magic power.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9743 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_homun.c')
-rw-r--r-- | src/char_sql/int_homun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c index 427559d30..206a6a5c1 100644 --- a/src/char_sql/int_homun.c +++ b/src/char_sql/int_homun.c @@ -219,7 +219,6 @@ int inter_delete_homunculus(int hom_id) { ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql); - mapif_homunculus_deleted(fd, 0); return 0; } @@ -228,17 +227,15 @@ int inter_delete_homunculus(int hom_id) { ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql); - mapif_homunculus_deleted(fd, 0); return 0; } - mapif_homunculus_deleted(fd, 1); return 1; } int mapif_delete_homunculus(int fd) { RFIFOHEAD(fd); - inter_delete_homunculus(RFIFOL(fd,2)); + mapif_homunculus_deleted(fd, inter_delete_homunculus(RFIFOL(fd,2))); } int mapif_rename_homun_ack(int fd, int account_id, int char_id, unsigned char flag, char *name){ |