mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
0 is a valid value for activeMenu
This commit is contained in:
@@ -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