diff --git a/dorf2.php b/dorf2.php index e54ff3f9..22187304 100644 --- a/dorf2.php +++ b/dorf2.php @@ -12,7 +12,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); header("Location: ".$_SERVER['PHP_SELF']); }else{ $building->procBuild($_GET);