From 7e5c439b68b19d7a0dd6a8be8bd225780b85a673 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Nov 2014 19:24:22 +0300 Subject: fix lg function. --- npc/functions/main.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 67677d1a..805c7136 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -32,8 +32,11 @@ function script g { } function script lg { - mes Sex == 0 ? l(getarg(0)) : l(getarg(1)); - return; + if (getargcount() > 1) + .@s$ = Sex == 0 ? l(getarg(0)) : l(getarg(1)); + else + .@s$ = l(getarg(0)); + return .@s$; } function script col { -- cgit v1.2.3-60-g2f50