Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2009, 11:18:17 PM (15 years ago)
Author:
rgrieder
Message:
  • Stupid MSVC extension: map::erase delivers an iterator but it shouldn't.
  • And fixed another bug in orxonox_cast.
  • Added two missing includes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/Identifier.h

    r3325 r3359  
    502502        {
    503503#ifdef ORXONOX_COMPILER_MSVC
    504             return source->template getDerivedPointer<T>(ClassIdentifier<T>::getIdentifier()->getClassID());
     504            if (source != NULL)
     505                return source->template getDerivedPointer<T>(ClassIdentifier<T>::getIdentifier()->getClassID());
     506            else
     507                return NULL;
    505508#else
    506509            return dynamic_cast<T*>(source);
Note: See TracChangeset for help on using the changeset viewer.