- fixed changed variable inside an assert that apparently got overlooked because it got only compiled as release.

This commit is contained in:
Christoph Oelckers 2017-03-12 01:59:41 +01:00
parent 64183fc3cd
commit 90c42519b7

View file

@ -160,7 +160,7 @@ namespace swrenderer
if (port->mPartner > 0) level.sectorPortals[port->mPartner].mFlags |= PORTSF_INSKYBOX;
r_viewpoint.camera = nullptr;
r_viewpoint.sector = port->mDestination;
assert(viewsector != nullptr);
assert(r_viewpoint.sector != nullptr);
R_SetViewAngle(r_viewpoint, r_viewwindow);
Thread->OpaquePass->ClearSeenSprites();
Thread->Clip3D->ClearFakeFloors();