summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-01 22:54:50 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-01 22:54:50 +0000
commit567abc1db608cdeeb7de41a43eb42e09d2acd6bb (patch)
tree4a1cfb76eadea22920e1d7b1c33512dfb981c128 /src/map/script.c
parent6d52e00aea78e7ca01e5ee3da51dbf39119acca7 (diff)
downloadhercules-567abc1db608cdeeb7de41a43eb42e09d2acd6bb.tar.gz
hercules-567abc1db608cdeeb7de41a43eb42e09d2acd6bb.tar.bz2
hercules-567abc1db608cdeeb7de41a43eb42e09d2acd6bb.tar.xz
hercules-567abc1db608cdeeb7de41a43eb42e09d2acd6bb.zip
The Clearing unused stack report will now print the related NPC
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8584 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c60b5f868..e497430ef 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2630,8 +2630,11 @@ void run_script_main(struct script_state *st)
if(stack->sp > stack->defsp)
{ //sp > defsp is valid in cases when you invoke functions and don't use the returned value. [Skotlex]
//Since sp is supposed to be defsp in these cases, we could assume the extra stack elements are unneeded.
- if (battle_config.etc_log)
- ShowWarning("Clearing unused stack stack.sp(%d) -> default(%d)\n",stack->sp,stack->defsp);
+ if (battle_config.etc_log)
+ {
+ ShowWarning("Clearing unused stack stack.sp(%d) -> default(%d)\n",stack->sp,stack->defsp);
+ report_src(st);
+ }
pop_stack(stack, stack->defsp, stack->sp); //Clear out the unused stack-section.
} else if(battle_config.error_log)
ShowError("stack.sp(%d) != default(%d)\n",stack->sp,stack->defsp);