mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
fail array was too small
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1590 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
27dce100f3
commit
54c6a624ea
@ -110,7 +110,7 @@ GCMemcard::GCMemcard(const char *filename)
|
||||
fail[0] = true;
|
||||
if (!mcd) return;
|
||||
|
||||
for(int i=0;i<12;i++)fail[i]=false;
|
||||
for(int i=0;i<FAILLAST;i++)fail[i]=false;
|
||||
|
||||
//This function can be removed once more about hdr is known and we can check for a valid header
|
||||
std::string fileType;
|
||||
|
@ -48,6 +48,7 @@ enum
|
||||
GCSFAIL,
|
||||
FAIL,
|
||||
WRITEFAIL,
|
||||
FAILLAST,
|
||||
};
|
||||
|
||||
class GCMemcard
|
||||
@ -144,7 +145,7 @@ private:
|
||||
#pragma pack(pop)
|
||||
|
||||
public:
|
||||
bool fail[12];
|
||||
bool fail[FAILLAST];
|
||||
|
||||
// constructor
|
||||
GCMemcard(const char* fileName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user