Sanity check. (#259)

This commit is contained in:
Agent X 2023-01-31 05:55:55 -05:00 committed by GitHub
parent 46b2e24052
commit 3283ec9950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -872,6 +872,7 @@ void painting_update_floors(struct Painting *painting) {
enterRight = 0; enterRight = 0;
struct Surface* surface; struct Surface* surface;
find_floor(m->marioObj->oPosX, m->marioObj->oPosY, m->marioObj->oPosZ, &surface); find_floor(m->marioObj->oPosX, m->marioObj->oPosY, m->marioObj->oPosZ, &surface);
if (surface == NULL) { continue; }
s16 floorType = surface->type; s16 floorType = surface->type;
/* The area in front of every painting in the game (except HMC and CotMC, which *\ /* The area in front of every painting in the game (except HMC and CotMC, which *\