Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3283


Ignore:
Timestamp:
Jul 13, 2009, 4:59:10 PM (15 years ago)
Author:
rgrieder
Message:

Fixed a bug that caused the game to crash at random locations when shutting it down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp6/src/orxonox/gamestates/GSDedicated.cc

    r3263 r3283  
    8585
    8686        this->server_ = new Server(CommandLine::getValue("port"));
    87         if( this->commandLine_ )
    88           delete[] this->commandLine_;
    8987        COUT(0) << "Loading scene in server mode" << std::endl;
    9088
     
    104102        delete this->originalTerminalSettings_;
    105103#endif
    106         //inputThread_->join();
     104        COUT(0) << "Press enter to end the game..." << std::endl;
     105        inputThread_->join();
    107106        delete this->inputThread_;
     107
     108        if (this->commandLine_ )
     109          delete[] this->commandLine_;
    108110
    109111        GameMode::setHasServer(false);
Note: See TracChangeset for help on using the changeset viewer.