From 547c9864b838525c3671db0736352e77bd8e1d7b Mon Sep 17 00:00:00 2001 From: yi12345 Date: Mon, 29 Apr 2013 23:33:34 +0300 Subject: [PATCH] update --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 255629ec..d54d2105 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -409,7 +409,7 @@ class Automation { $database->deleteFriend($friend['id'],"friend".$i."wait"); } } - $database->updateUserField($session->uid, 'alliance', 0, 1); + $database->updateUserField($need['uid'], 'alliance', 0, 1); if($database->isAllianceOwner($need['uid'])){ $alliance = $database->getUserAllianceID($need['uid']); $newowner = $database->getAllMember2($alliance);