From fcc249589d39f54cbbfab2a8e5a4da2c6315a226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 9 Jun 2010 00:10:26 +0200 Subject: [PATCH] game: Fix crash when going from mission to lobby. --- src/egs_game.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egs_game.erl b/src/egs_game.erl index de2f0c6..f4fdde9 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -278,7 +278,7 @@ lobby_load(CSocket, GID, QuestID, ZoneID, MapID, EntryID) -> _ -> ignore end, - if OldUser#users.zoneid /= ZoneID -> + if OldUser#users.questid /= QuestID; OldUser#users.zoneid /= ZoneID -> egs_proto:send_zone_init(CSocket, GID, lobby), egs_proto:send_zone(CSocket, ZoneFile); true -> ignore