diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-28 03:56:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-28 03:56:12 +0300 |
commit | 447787839e492410611ebe16d01fd5e1ae52e045 (patch) | |
tree | 0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/script_buildins.c | |
parent | d37fe74804b94065259703509b4b3dc3f53c30a5 (diff) | |
download | plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2 plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz plugin-447787839e492410611ebe16d01fd5e1ae52e045.zip |
Fix different warnings.
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index d62d4bc..809e091 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -331,7 +331,7 @@ BUILDIN(requestItem) int item = 0; - if (!sd->npc_str) + if (!*sd->npc_str) { ShowWarning("npc string not found\n"); script_pushint(st, 0); @@ -379,7 +379,7 @@ BUILDIN(requestItems) // take received text/value and store it in the designated variable sd->state.menu_or_input = 0; - if (!sd->npc_str) + if (!*sd->npc_str) { ShowWarning("npc string not found\n"); script_pushstr(st, aStrdup("0,0")); @@ -416,7 +416,7 @@ BUILDIN(requestItemIndex) int item = -1; - if (!sd->npc_str) + if (!*sd->npc_str) { script_pushint(st, -1); ShowWarning("npc string not found\n"); @@ -467,7 +467,7 @@ BUILDIN(requestItemsIndex) // take received text/value and store it in the designated variable sd->state.menu_or_input = 0; - if (!sd->npc_str) + if (!*sd->npc_str) { script_pushstr(st, aStrdup("-1")); ShowWarning("npc string not found\n"); @@ -511,7 +511,7 @@ BUILDIN(requestCraft) // take received text/value and store it in the designated variable sd->state.menu_or_input = 0; - if (!sd->npc_str) + if (!*sd->npc_str) { ShowWarning("npc string not found\n"); script->reportsrc(st); |