Fix STK2 rocket boots not saving in saves

This commit is contained in:
jacob1 2019-11-03 10:31:18 -05:00
parent 9ed7f1e85a
commit 7af51b55ac

View File

@ -732,7 +732,7 @@ void GameSave::readOPS(char * data, int dataLength)
while (bson_iterator_next(&stkmiter)) while (bson_iterator_next(&stkmiter))
{ {
CheckBsonFieldBool(stkmiter, "rocketBoots1", &stkm.rocketBoots1); CheckBsonFieldBool(stkmiter, "rocketBoots1", &stkm.rocketBoots1);
CheckBsonFieldBool(stkmiter, "rocketBoots1", &stkm.rocketBoots1); CheckBsonFieldBool(stkmiter, "rocketBoots2", &stkm.rocketBoots2);
CheckBsonFieldBool(stkmiter, "fan1", &stkm.fan1); CheckBsonFieldBool(stkmiter, "fan1", &stkm.fan1);
CheckBsonFieldBool(stkmiter, "fan2", &stkm.fan2); CheckBsonFieldBool(stkmiter, "fan2", &stkm.fan2);
if (!strcmp(bson_iterator_key(&stkmiter), "rocketBootsFigh") && bson_iterator_type(&stkmiter) == BSON_ARRAY) if (!strcmp(bson_iterator_key(&stkmiter), "rocketBootsFigh") && bson_iterator_type(&stkmiter) == BSON_ARRAY)