fix for issue 687

This commit is contained in:
thedarkness1981 2009-07-11 12:26:36 +00:00
parent 37c620db90
commit e7b7663ed3

View File

@ -57,11 +57,10 @@ int CheatMenu(const char * gameID)
GuiButton createBtn(&createBtnImg,&createBtnImg, 2, 3, -140, 400, &trigA, &btnSoundOver, &btnClick,1);
createBtn.SetLabel(&createBtnTxt);
GCTCheats c;
char txtfilename[40];
char txtfilename[55];
snprintf(txtfilename,sizeof(txtfilename),"%s%s.txt",Settings.TxtCheatcodespath,gameID);
GCTCheats c;
int check = c.openTxtfile(txtfilename);
switch(check)