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 8, 2023
1 parent e52194a commit 6193f4a
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 6193f4a

Please sign in to comment.