summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-17 17:34:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-17 17:34:43 +0300
commit95a2ef315ce1e81ecae5bb3c461c0932ae53474b (patch)
tree7cf9c33a3a49d38836053ccd2025720dda77acaf /src/map/script.c
parent5cb297ff979cd4805fbed7521e15f4c00e179ac0 (diff)
downloadplugin-95a2ef315ce1e81ecae5bb3c461c0932ae53474b.tar.gz
plugin-95a2ef315ce1e81ecae5bb3c461c0932ae53474b.tar.bz2
plugin-95a2ef315ce1e81ecae5bb3c461c0932ae53474b.tar.xz
plugin-95a2ef315ce1e81ecae5bb3c461c0932ae53474b.zip
fix some issues in script command npcTalk3.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 1250d1b..c18def8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -91,12 +91,12 @@ BUILDIN(restoreCam)
BUILDIN(npcTalk3)
{
- getSD();
-
- char *str;
+ const char *str;
char *msg;
struct npc_data *nd = NULL;
+ getSD();
+
if (script_hasdata(st, 3))
{
nd = npc->name2id (script_getstr(st, 2));
@@ -128,7 +128,7 @@ BUILDIN(npcTalk3)
strcpy (message, msg);
strcat (message, " : ");
strcat (message, str);
- send_local_message (sd, &(nd->bl), message);
+ send_local_message (sd->fd, &(nd->bl), message);
}
return true;