We ran out of room for OSD modules (nw)

This commit is contained in:
Brad Hughes 2016-09-30 01:11:11 -04:00
parent 78d4e6db5b
commit 3ed5ea1020
2 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ void osd_module_manager::register_module(const module_type &mod_type)
osd_printf_verbose("===> registered module %s %s\n", module->name(), module->type());
int i;
for (i = 0; m_modules[i] != nullptr; i++)
for (i = 0; i < MAX_MODULES && m_modules[i] != nullptr; i++)
;
assert_always(i < MAX_MODULES, "Module registration beyond MAX_MODULES!");
m_modules[i] = module;
}
else

View File

@ -62,7 +62,7 @@ class osd_module_manager
{
public:
static const int MAX_MODULES = 32;
static const int MAX_MODULES = 64;
osd_module_manager();
~osd_module_manager();