From 961fc2eb9174e12d57232bf4541d93583ebd9d4c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 18 Sep 2022 15:35:58 -0300 Subject: And this should really fix the Aurora bug. --- npc/functions/util.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npc/functions/util.txt b/npc/functions/util.txt index ac864a125..cd5def7e8 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -70,10 +70,12 @@ function script DelChrRegFromEveryPlayer { // Del variables which SQL can't reach .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); for (.@i = 0; .@i < .@c; .@i++) { + attachrid(.@players[.@i]); if (compare(getarg(0), "$")) - setd(str(getarg(0)), ""); + setd(getarg(0), ""); else - setd(str(getarg(0)), 0); + setd(getarg(0), 0); + detachrid(); } return; } -- cgit v1.2.3-60-g2f50