Read float bson settings as floats, not ints

This commit is contained in:
jacob1 2021-11-20 23:56:37 -05:00
parent cb7665b631
commit c25e35e9ff
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -580,7 +580,7 @@ void GameSave::CheckBsonFieldFloat(bson_iterator iter, const char *field, float
{
if (bson_iterator_type(&iter) == BSON_DOUBLE)
{
*setting = float(bson_iterator_int(&iter));
*setting = float(bson_iterator_double(&iter));
}
else
{