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;
|
fail[0] = true;
|
||||||
if (!mcd) return;
|
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
|
//This function can be removed once more about hdr is known and we can check for a valid header
|
||||||
std::string fileType;
|
std::string fileType;
|
||||||
|
|
|
@ -48,6 +48,7 @@ enum
|
||||||
GCSFAIL,
|
GCSFAIL,
|
||||||
FAIL,
|
FAIL,
|
||||||
WRITEFAIL,
|
WRITEFAIL,
|
||||||
|
FAILLAST,
|
||||||
};
|
};
|
||||||
|
|
||||||
class GCMemcard
|
class GCMemcard
|
||||||
|
@ -144,7 +145,7 @@ private:
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool fail[12];
|
bool fail[FAILLAST];
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
GCMemcard(const char* fileName);
|
GCMemcard(const char* fileName);
|
||||||
|
|
Loading…
Reference in New Issue