From de74f4a0cb07a4cd1f9ecd06e44679a7773626cb Mon Sep 17 00:00:00 2001 From: iopietro Date: Thu, 10 May 2018 17:52:22 +0200 Subject: [PATCH] Hotfixes +Fixed a bug that didn't permit to send the welcome message (I hate global variables...) --- GameEngine/Account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'];