Skip to content

Commit

Permalink
BugFix: Unable to cast floating point to enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 9, 2023
1 parent e52194a commit e606d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flamegpu/io/JSONStateReader.cu
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class JSONStateReader_agentsize_counter : public rapidjson::BaseReaderHandler<ra
} else if (lastKey == "timing") {
simulation_config.emplace(lastKey, static_cast<bool>(val));
} else if (lastKey == "verbosity") {
simulation_config.emplace(lastKey, static_cast<flamegpu::Verbosity>(val));
simulation_config.emplace(lastKey, static_cast<flamegpu::Verbosity>(static_cast<int>(val)));
} else if (lastKey == "console_mode") {
#ifdef FLAMEGPU_VISUALISATION
simulation_config.emplace(lastKey, static_cast<bool>(val));
Expand Down

0 comments on commit e606d4c

Please sign in to comment.