Make gControllers respect MAX_PLAYERS

fixes Linux crash when MAX_PLAYERS is increased
This commit is contained in:
MysterD 2020-10-16 22:22:28 -07:00
parent 130cfefa82
commit a5a4c3c324
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
// FIXME: I'm not sure all of these variables belong in this file, but I don't
// know of a good way to split them
struct Controller gControllers[3];
struct Controller gControllers[MAX_PLAYERS];
struct SPTask *gGfxSPTask;
Gfx *gDisplayListHead;
u8 *gGfxPoolEnd;

View File

@ -22,7 +22,7 @@ struct DemoInput
u8 buttonMask;
};
extern struct Controller gControllers[3];
extern struct Controller gControllers[MAX_PLAYERS];
extern OSContStatus gControllerStatuses[4];
extern OSContPad gControllerPads[4];
extern OSMesgQueue gGameVblankQueue;