Fix crash when attempting to write to memory from debugger (nw)

This commit is contained in:
AJR 2020-05-26 09:19:40 -04:00
parent 186b50e8df
commit 668d136926

View File

@ -552,8 +552,8 @@ void symbol_table::notify_memory_modified()
{
// walk up the table hierarchy to find the owner
for (symbol_table *symtable = this; symtable != nullptr; symtable = symtable->m_parent)
if (symtable->m_memory_modified != nullptr)
m_memory_modified();
if (symtable->m_memory_modified)
symtable->m_memory_modified();
}