From cb03e17fdc83704678b67e20453511d3f2c41d64 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 10 Nov 2012 17:15:37 +0000 Subject: Performance Improvement; Server shut down, instance clear up, and @cleanmap are now all faster. Instead of wasting time doing a dbmap lookup (of a data it already possessed!) on each floor item being deleted, it'll use the data to clean the item. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16901 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/instance.c') diff --git a/src/map/instance.c b/src/map/instance.c index 9d0b8246e..f5ae125a6 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -271,7 +271,7 @@ int instance_cleanup_sub(struct block_list *bl, va_list ap) { //There is no need for this, the pet is removed together with the player. [Skotlex] break; case BL_ITEM: - map_clearflooritem(bl->id); + map_clearflooritem(bl); break; case BL_SKILL: skill_delunit((struct skill_unit *) bl); -- cgit v1.2.3-60-g2f50