diff --git a/src/flamegpu/io/JSONStateReader.cu b/src/flamegpu/io/JSONStateReader.cu index aec104ccb..5acd4b704 100644 --- a/src/flamegpu/io/JSONStateReader.cu +++ b/src/flamegpu/io/JSONStateReader.cu @@ -364,7 +364,7 @@ class JSONStateReader_agentsize_counter : public rapidjson::BaseReaderHandler(val)); } else if (lastKey == "verbosity") { - simulation_config.emplace(lastKey, static_cast(val)); + simulation_config.emplace(lastKey, static_cast(static_cast(val))); } else if (lastKey == "console_mode") { #ifdef FLAMEGPU_VISUALISATION simulation_config.emplace(lastKey, static_cast(val));