diff --git a/GameEngine/Account.php b/GameEngine/Account.php index 78eec917..f003d0dc 100755 --- a/GameEngine/Account.php +++ b/GameEngine/Account.php @@ -265,7 +265,8 @@ class Account { } function generateBase($kid, $uid, $username) { - global $database, $message; + global $database; + $message = new Message(); if($kid == 0) $kid = rand(1,4); else $kid = $_POST['kid'];