summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;