diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-26 17:19:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-26 17:34:58 +0300 |
commit | 248b23a44cb86ac825c0af2506fa93a4f617230e (patch) | |
tree | 414217dd18390a3af790327b5b40f01bb2780f1d /src/map/script.c | |
parent | 4f1b7c5f4a35b098560f047ae0579861f4ca96e4 (diff) | |
download | plugin-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.gz plugin-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.bz2 plugin-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.xz plugin-248b23a44cb86ac825c0af2506fa93a4f617230e.zip |
fix compilation warnings.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index 618f89c..ca6907c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -337,14 +337,14 @@ BUILDIN(setNpcDir) BUILDIN(rif) { - char *str = 0; + const char *str = 0; if (script_getnum(st, 2)) { str = script_getstr(st, 3); if (str) script_pushstr(st, aStrdup(str)); else - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } else if (script_hasdata(st, 4)) { @@ -352,11 +352,11 @@ BUILDIN(rif) if (str) script_pushstr(st, aStrdup(str)); else - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } else { - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } return true; |