Megafunk / MassSample

My understanding of Unreal Engine 5's experimental ECS plugin with a small sample project.
MIT License
681 stars 112 forks source link

Fix crash in Linux by initializing VariableName with 0 for consistent behavior across platforms #53

Closed maciello closed 1 year ago

maciello commented 1 year ago

This pull request addresses a crucial issue by properly initializing the variable with a value of 0. In C++, the initialization of a std::atomic variable involves using the constructor to provide an initial value. By ensuring the initialization of the variable, we ensure consistent behavior across different platforms, such as Windows and Linux. This fix is essential as it resolves a crash that was occurring specifically in Linux.