summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-29 18:46:20 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-29 18:46:20 +0000
commit48351d48eeaf827f4f3f9215a8d7c337d7b3b902 (patch)
treee4cc00e6cc3603d0c9eef4fbb90ff758c5f47dd9 /src
parent385a255d2ffffd4614620f882412ee359f085bb9 (diff)
downloadhercules-48351d48eeaf827f4f3f9215a8d7c337d7b3b902.tar.gz
hercules-48351d48eeaf827f4f3f9215a8d7c337d7b3b902.tar.bz2
hercules-48351d48eeaf827f4f3f9215a8d7c337d7b3b902.tar.xz
hercules-48351d48eeaf827f4f3f9215a8d7c337d7b3b902.zip
Added a return value to buildin_rid2name if rid is invalid
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7973 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 42fa4ed60..a6ad56ffe 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11674,6 +11674,9 @@ int buildin_rid2name(struct script_state *st){
push_str(st->stack,C_CONSTSTR,"");
break;
}
+ } else {
+ ShowError("buildin_rid2name: invalid RID\n");
+ push_str(st->stack,C_CONSTSTR,"(null)");
}
return 0;
}