0 is a valid value for activeMenu
This commit is contained in:
parent
0b5f0e9722
commit
5e44345702
@ -1143,7 +1143,7 @@ int parse_save_OPS(void *save, int size, int replace, int x0, int y0, unsigned c
|
|||||||
}*/
|
}*/
|
||||||
else if(strcmp(bson_iterator_key(&iter), "activeMenu")==0 && replace)
|
else if(strcmp(bson_iterator_key(&iter), "activeMenu")==0 && replace)
|
||||||
{
|
{
|
||||||
if(bson_iterator_type(&iter)==BSON_INT && bson_iterator_int(&iter) > 0 && bson_iterator_int(&iter) < SC_TOTAL && msections[bson_iterator_int(&iter)].doshow)
|
if(bson_iterator_type(&iter)==BSON_INT && bson_iterator_int(&iter) >= 0 && bson_iterator_int(&iter) < SC_TOTAL && msections[bson_iterator_int(&iter)].doshow)
|
||||||
{
|
{
|
||||||
active_menu = bson_iterator_int(&iter);
|
active_menu = bson_iterator_int(&iter);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user