Display::Display(bool screen_, unsigned char x_, unsigned char y_, unsigned char w_, unsigned char h_) : _screen(screen_), _x(x_), _y(y_), _w(w_), _h(h_), _dirty(true), _enabled(false){ dprint("New Display"); _instances = linkedlistAdd(_instances ? &_instances : NULL, reinterpret_cast<void*>(this)); // ERROR sassert(_instances != NULL, "Insufficient memory for LinkedList"); }
void EntityManager::Add(Entity* entity) { mEntities = linkedlistAdd(&mEntities, entity); }