summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-20 23:13:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-20 23:13:22 +0000
commitf69af80cdba997b6fe10310b36bca8a9994c6eab (patch)
treeed6f135212558a3f0666240c09210b8cfe3584fe /src/map/script.c
parent8e3ebf29b3d6fcb8641f7f3569a5627eb9c74b70 (diff)
downloadhercules-f69af80cdba997b6fe10310b36bca8a9994c6eab.tar.gz
hercules-f69af80cdba997b6fe10310b36bca8a9994c6eab.tar.bz2
hercules-f69af80cdba997b6fe10310b36bca8a9994c6eab.tar.xz
hercules-f69af80cdba997b6fe10310b36bca8a9994c6eab.zip
- Added source reporting when you do an invalid int&str or str&int operation on a script.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7782 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index dbcf96be9..f55355cd8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11327,6 +11327,7 @@ void op_2(struct script_state *st,int op)
}else{
// si,is => error
ShowWarning("script: op_2: int&str, str&int not allow.");
+ report_src(st);
push_val(st->stack,C_INT,0);
}
}