mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Fix default painting warps. (#380)
This commit is contained in:
parent
c711f9f7c9
commit
117379eba4
1 changed files with 1 additions and 1 deletions
|
@ -788,7 +788,7 @@ static void initiate_painting_warp_node(struct WarpNode *pWarpNode) {
|
|||
* Check is Mario has entered a painting, and if so, initiate a warp.
|
||||
*/
|
||||
void initiate_painting_warp(s16 paintingIndex) {
|
||||
if (gCurrentArea && gCurrentArea->paintingWarpNodes && gMarioState && gMarioState->floor && paintingIndex >= 0 && paintingIndex < MAX_PAINTING_WARP_NODES) {
|
||||
if (gCurrentArea && gCurrentArea->paintingWarpNodes && gMarioState && gMarioState->floor && paintingIndex >= -1 && paintingIndex < MAX_PAINTING_WARP_NODES) {
|
||||
struct WarpNode *pWarpNode = paintingIndex == -1 ? get_painting_warp_node() : &gCurrentArea->paintingWarpNodes[paintingIndex];
|
||||
|
||||
if (pWarpNode != NULL) {
|
||||
|
|
Loading…
Reference in a new issue