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:
nakeee 2008-12-18 23:38:07 +00:00
parent 27dce100f3
commit 54c6a624ea
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);