From 4c5e3668433a0a6d63c0777f451f270f06e57fb7 Mon Sep 17 00:00:00 2001 From: eathenabot Date: Tue, 13 Dec 2011 22:44:01 +0000 Subject: * Merged changes up to eAthena 15033. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15098 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mercenary.c | 2 +- src/map/script.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/mercenary.c b/src/map/mercenary.c index f6fa6bdaa..6e4ff24a5 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -65,7 +65,7 @@ int merc_create(struct map_session_data *sd, int class_, unsigned int lifetime) struct s_mercenary merc; struct s_mercenary_db *db; int i; - nullpo_retr(1,sd); + nullpo_retr(0,sd); if( (i = merc_search_index(class_)) < 0 ) return 0; diff --git a/src/map/script.c b/src/map/script.c index 6b051dba0..ea8e26c23 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14828,6 +14828,7 @@ BUILDIN_FUNC(setcell) *------------------------------------------*/ BUILDIN_FUNC(mercenary_create) { +#ifndef TXT_ONLY struct map_session_data *sd; int class_, contract_time; @@ -14841,7 +14842,7 @@ BUILDIN_FUNC(mercenary_create) contract_time = script_getnum(st,3); merc_create(sd, class_, contract_time); - +#endif return 0; } -- cgit v1.2.3-60-g2f50