Debug build compile fix

This commit is contained in:
Magnus Norddahl 2017-03-12 19:10:52 +01:00
parent 5bcdc7d889
commit 3113db798d

View file

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