1
General / Re: RenderTarget Pointer&Reference issue
« on: November 29, 2021, 09:10:05 am »Yep, the Entity pointer there (the "this" value) is null.
Maybe the code that set it up wasn't called, or something failed.
Values of pointers close to 0 (like 0x0000000000000108) are still from a null pointer. It's using the null as the base address of an object that doesn't exist, then offsetting from that to find member variables (resulting in the error at a near 0 value).
Yeah i fixed that by making a function that initializes Entity
void MainWindow::initializeEntity(Entity& entity)
{
this->entity = &entity;
}
{
this->entity = &entity;
}