From fc2e792e203594db2d48df1a1cf21de51de89337 Mon Sep 17 00:00:00 2001 From: Willem Burgers Date: Mon, 5 Jan 2015 21:28:54 +0100 Subject: [PATCH] fixes #2 (again) I messed up the fix for #2 I removed the if statement such that it would no longer fail on startup, but this also removed getting the list of scenes... So the scenelist was empty Now everything is working as it should --- Server/Main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Server/Main.cpp b/Server/Main.cpp index 437e9e0..5c2767a 100644 --- a/Server/Main.cpp +++ b/Server/Main.cpp @@ -1156,6 +1156,10 @@ bool init_Scenes() { uint8 numscenes = 0; uint8 *sceneIds = new uint8[numscenes]; + if((numscenes = Manager::Get()->GetAllScenes(&sceneIds))==0) { + std::cout << "No Scenes found" << endl; + } + int scid=0; for(int i=0; i