Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 7:06:19 PM (16 years ago)
Author:
rgrieder
Message:
  • 'fixed' a bug in CppTcl.cc, but why would map::find pose a problem if the map is empty?
  • 'fixed' InGameConsole destructor: commented everything. We should probably use OverlayManager::destroyOverlay to delete the created overlay elements. Unfortunately that didn't work either. And I changed delete to delete[] for the list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/console/InGameConsole.cc

    r1446 r1455  
    8686    InGameConsole::~InGameConsole(void)
    8787    {
    88         for (int i = 0; i < LINES; i++)
     88        /*for (int i = 0; i < LINES; i++)
    8989            if (this->consoleOverlayTextAreas_[i])
    90                 delete this->consoleOverlayTextAreas_[i];
     90                om_->destroyOverlayElement(this->consoleOverlayTextAreas_[i]);
    9191
    9292        if (this->consoleOverlayTextAreas_)
    93             delete this->consoleOverlayTextAreas_;
     93            delete[] this->consoleOverlayTextAreas_;*/
    9494    }
    9595
Note: See TracChangeset for help on using the changeset viewer.