|
|
@@ -76,7 +76,7 @@ void UnitManager::unregister_destroy_callback(UnitDestroyCallback* udc)
|
|
|
void UnitManager::trigger_destroy_callbacks(UnitId id)
|
|
|
{
|
|
|
ListNode* cur;
|
|
|
- list_for_each(cur != &_callbacks.node)
|
|
|
+ list_for_each(cur, &_callbacks.node)
|
|
|
{
|
|
|
UnitDestroyCallback* udc = (UnitDestroyCallback*)container_of(cur, UnitDestroyCallback, node);
|
|
|
udc->destroy(id, udc->user_data);
|