diff --git a/Source/Project64/Plugins/Plugin Base.cpp b/Source/Project64/Plugins/Plugin Base.cpp index 40f2fe5b7..4b7b259f3 100644 --- a/Source/Project64/Plugins/Plugin Base.cpp +++ b/Source/Project64/Plugins/Plugin Base.cpp @@ -124,11 +124,13 @@ bool CPlugin::Load (const char * FileName) void CPlugin::RomOpened() { - if (m_RomOpen || RomOpen == NULL) + if (m_RomOpen) return; WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType()); - RomOpen(); + if(RomOpen != NULL){ + RomOpen(); + } m_RomOpen = true; WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType()); }