Lighting set_color Crash

The following code is crashing at the call to set_color. What am I doing wrong here?

PT(AmbientLight) aLight01;
aLight01 = new AmbientLight("aLight01");
aLight01->set_color(Colorf(0.2, 0.2, 0.2, 1));
NodePath aLight01np = window->get_render().attach_new_node(aLight01);

I don’t see anything wrong. Another bad build, perhaps?


I discovered that NDEBUG was defined. :blush:

I’ve removed it and it seems to be OK now.