summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-28 15:03:08 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-28 15:03:08 +0000
commitb59ada842815099285bf59b4abc86addaf58dd67 (patch)
tree719e669388e7006ac274861ed8ddf03ea74a1cb0 /src/map
parent0946cdb23baa147530c8f6fde789b2d34b4b85b6 (diff)
downloadhercules-b59ada842815099285bf59b4abc86addaf58dd67.tar.gz
hercules-b59ada842815099285bf59b4abc86addaf58dd67.tar.bz2
hercules-b59ada842815099285bf59b4abc86addaf58dd67.tar.xz
hercules-b59ada842815099285bf59b4abc86addaf58dd67.zip
Fixed a coding mistake I made in r12142.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12145 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 25265e59e..cce232fd2 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1173,6 +1173,8 @@ int map_delobjectnofree(int id)
*------------------------------------------*/
int map_delobject(int id)
{
+ struct block_list* bl;
+
if( id < 0 || id >= MAX_FLOORITEM )
{
ShowError("map_delobject: invalid object id '%d'!\n", id);
@@ -1182,8 +1184,9 @@ int map_delobject(int id)
if(objects[id]==NULL)
return 0;
+ bl = objects[id];
map_delobjectnofree(id);
- map_freeblock(objects[id]);
+ map_freeblock(bl);
return 0;
}