Ignore:
Timestamp:
Aug 23, 2010, 3:56:09 AM (10 years ago)
Author:
sam
Message:

Properly implement program termination, including in the GTK program.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dict.cpp

    r153 r170  
    8686    else
    8787    {
    88         data->entities[id]->Ref();
     88        Ticker::Ref(data->entities[id]);
    8989    }
    9090
     
    9494void Dict::RemoveSlot(int id)
    9595{
    96     if (data->entities[id]->Unref() == 0)
     96    if (Ticker::Unref(data->entities[id]) == 0)
    9797        data->entities[id] = NULL;
    9898}
     
    101101void Dict::SetEntity(int id, Entity *entity)
    102102{
    103     entity->Ref();
     103    Ticker::Ref(entity);
    104104    data->entities[id] = entity;
    105105}
Note: See TracChangeset for help on using the changeset viewer.