From e606d4c2bd3db24d548729339896d8e1a7196fd1 Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Wed, 8 Nov 2023 13:11:18 +0000 Subject: [PATCH] BugFix: Unable to cast floating point to enum. --- src/flamegpu/io/JSONStateReader.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));