set m_cursetting to NULL since must not be set in case of onoff_alloc, this fixes validation too (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-05-17 13:58:32 +00:00
parent d4944e9582
commit 0f76b1e0f6

View File

@ -3915,6 +3915,8 @@ void ioport_configurer::onoff_alloc(const char *name, ioport_value defval, iopor
// allocate settings
setting_alloc(defval & mask, DEF_STR(Off));
setting_alloc(~defval & mask, DEF_STR(On));
// clear cursettings set by setting_alloc
m_cursetting = NULL;
}