Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7791 for code/branches


Ignore:
Timestamp:
Dec 21, 2010, 10:24:50 PM (14 years ago)
Author:
dafrick
Message:

Resolving bug in release mode, asserts apparently are just ignored when compiling for release mode, thus it's a bad idea to put methods with side effects in there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/modules/pickup/PickupSpawner.cc

    r7549 r7791  
    317317            assert(pickup);
    318318            assert(target);
    319             assert(pickup->pickup(target));
     319            bool pickedUp = pickup->pickup(target);
     320            assert(pickedUp);
     321            pickedUp = false; // To avoid compiler warning.
    320322
    321323            this->decrementSpawnsRemaining();
Note: See TracChangeset for help on using the changeset viewer.