mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
fix uninitialized state being potentially (usually) invalid
This commit is contained in:
@@ -225,7 +225,7 @@ void run(const std::string &config_file, GLFWwindow *window) {
|
||||
|
||||
auto scene = YAML::LoadFile(config_file);
|
||||
|
||||
State state;
|
||||
State state{};
|
||||
glfwSetWindowUserPointer(window, &state);
|
||||
|
||||
state.dimension = scene["dimension"].as<int>();
|
||||
|
||||
Reference in New Issue
Block a user