Hotfix crash bug when load .wch file
This commit is contained in:
parent
993b6fbb2c
commit
74853a83fb
|
@ -623,6 +623,7 @@ bool Load_Watches(bool clear, const char* filename)
|
|||
Temp.Address = 0; // default values
|
||||
Temp.Size = 'b';
|
||||
Temp.Type = 'h';
|
||||
Temp.comment = NULL;
|
||||
char mode;
|
||||
char Str_Tmp[1024];
|
||||
fgets(Str_Tmp,1024,WatchFile);
|
||||
|
@ -1428,4 +1429,4 @@ void UpdateWatchCheats() {
|
|||
extern int FCEU_CalcCheatAffectedBytes(uint32, uint32);
|
||||
for (int i = 0; i < WatchCount; ++i)
|
||||
rswatches[i].Cheats = FCEU_CalcCheatAffectedBytes(rswatches[i].Address, WatchSizeConv(rswatches[i]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue