Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2008, 11:28:50 AM (16 years ago)
Author:
rgrieder
Message:

Fixed a bug in Timer.h: Include of Executor was missing, but when using forward declarations, you can still cast to base classes if you use a brute force C-style cast.
In this case this would not have mattered (simple derivation), but C-style casts with pointers are dangerous.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/tools/Timer.h

    r2506 r2513  
    6262
    6363#include "OrxonoxPrereqs.h"
     64#include "core/Executor.h"
    6465#include "core/OrxonoxClass.h"
    6566#include "gamestates/GSRoot.h"
     
    198199                this->setInterval(interval);
    199200                this->bLoop_ = bLoop;
    200                 this->executor_ = static_cast<Executor*>(executor);
     201                this->executor_ = executor;
    201202                this->bActive_ = true;
    202203
Note: See TracChangeset for help on using the changeset viewer.