From 70028b45b1a73422867cf1432ea1dc29a613fc98 Mon Sep 17 00:00:00 2001 From: celest Date: Wed, 29 Dec 2004 17:22:35 +0000 Subject: git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@859 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index 91245d19e..788c755e5 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5466,14 +5466,18 @@ int buildin_strmobinfo(struct script_state *st) if(num==1) { char *buf; buf=aCalloc(24, 1); - buf=mob_db[class].name; +// buf=mob_db[class].name; +// for string assignments you would need to go for c++ [Shinomori] + strcpy(buf,mob_db[class].name); push_str(st->stack,C_STR,buf); return 0; } else if(num==2) { char *buf; buf=aCalloc(24, 1); - buf=mob_db[class].jname; +// buf=mob_db[class].jname; +// for string assignments you would need to go for c++ [Shinomori] + strcpy(buf,mob_db[class].jname); push_str(st->stack,C_STR,buf); return 0; } -- cgit v1.2.3-70-g09d2