Fixed crashing bug related to memwatch and "load last file on memwatch startup"
This commit is contained in:
parent
15cc62e978
commit
82cdb6a12e
|
@ -537,6 +537,7 @@ void OpenMemwatchRecentFile(int memwRFileNumber)
|
||||||
{
|
{
|
||||||
int rnum=memwRFileNumber;
|
int rnum=memwRFileNumber;
|
||||||
if (rnum > MEMW_MAX_NUMBER_OF_RECENT_FILES) return; //just in case
|
if (rnum > MEMW_MAX_NUMBER_OF_RECENT_FILES) return; //just in case
|
||||||
|
if (rnum == NULL) return; //If no recent files exist just return. Useful for Load last file on startup (or if something goes screwy)
|
||||||
|
|
||||||
char* x = memw_recent_files[rnum];
|
char* x = memw_recent_files[rnum];
|
||||||
char watchfcontents[2048];
|
char watchfcontents[2048];
|
||||||
|
|
Loading…
Reference in New Issue