mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-17 14:28:30 +01:00
Read float bson settings as floats, not ints
This commit is contained in:
parent
cb7665b631
commit
c25e35e9ff
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user