Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
fixes #2 (again)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wburgers committed Jan 5, 2015
1 parent 9290006 commit fc2e792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Server/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<numscenes; ++i) {
Expand Down

0 comments on commit fc2e792

Please sign in to comment.