diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-29 18:46:20 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-29 18:46:20 +0000 |
commit | 48351d48eeaf827f4f3f9215a8d7c337d7b3b902 (patch) | |
tree | e4cc00e6cc3603d0c9eef4fbb90ff758c5f47dd9 /src | |
parent | 385a255d2ffffd4614620f882412ee359f085bb9 (diff) | |
download | hercules-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.c | 3 |
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; } |