mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 21:02:18 -05:00
Prevent unrestricted items camera crash (#852)
This commit is contained in:
parent
d08b1d277e
commit
eb49053e73
@ -402,6 +402,12 @@ BgImage* func_80096A74(PolygonType1* polygon1, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
camera = GET_ACTIVE_CAM(globalCtx);
|
camera = GET_ACTIVE_CAM(globalCtx);
|
||||||
camId = camera->camDataIdx;
|
camId = camera->camDataIdx;
|
||||||
|
if (camId == -1 && CVar_GetS32("gNoRestrictItems", 0)) {
|
||||||
|
// This prevents a crash when using items that change the
|
||||||
|
// camera (such as din's fire) on scenes with prerendered backgrounds
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// jfifid
|
// jfifid
|
||||||
camId2 = func_80041C10(&globalCtx->colCtx, camId, BGCHECK_SCENE)[2].y;
|
camId2 = func_80041C10(&globalCtx->colCtx, camId, BGCHECK_SCENE)[2].y;
|
||||||
if (camId2 >= 0) {
|
if (camId2 >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user