Make gControllers respect MAX_PLAYERS
fixes Linux crash when MAX_PLAYERS is increased
This commit is contained in:
parent
130cfefa82
commit
a5a4c3c324
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue