Fix when too many variables are used.
This commit is contained in:
parent
94ff67ee15
commit
b0d1a98cd1
|
@ -380,6 +380,12 @@ error:
|
|||
|
||||
static bool get_import_value(xmlNodePtr ptr)
|
||||
{
|
||||
if (gl_tracker_info_cnt >= MAX_VARIABLES)
|
||||
{
|
||||
SSNES_ERR("Too many import variables ...\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
xmlChar *id = xmlGetProp(ptr, (const xmlChar*)"id");
|
||||
xmlChar *semantic = xmlGetProp(ptr, (const xmlChar*)"semantic");
|
||||
xmlChar *wram = xmlGetProp(ptr, (const xmlChar*)"wram");
|
||||
|
|
Loading…
Reference in New Issue