From 68c267ff1c0f15e182d68ecf38e85c0959019d06 Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 4 Mar 2014 08:23:44 +0200 Subject: [PATCH] Update dorf3.php --- dorf3.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dorf3.php b/dorf3.php index cc1e579c..178db277 100644 --- a/dorf3.php +++ b/dorf3.php @@ -14,7 +14,8 @@ include("GameEngine/Village.php"); $start = $generator->pageLoadTimeStart(); if(isset($_GET['newdid'])) { - $_SESSION['wid'] = $_GET['newdid']; + $_SESSION['wid'] = $_GET['newdid']; + $database->query("UPDATE ".TB_PREFIX."users SET village_select=".$_GET['newdid']." WHERE id=".$session->uid); if(isset($_GET['s'])){ header("Location: ".$_SERVER['PHP_SELF']."?s=".$_GET['s']); }else{