diff options
author | sfan5 <sfan5@live.de> | 2021-04-05 13:38:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 13:38:31 +0200 |
commit | f0bad0e2badbb7d4777aac7de1b50239bca4010a (patch) | |
tree | 4c3115a42ac86e9a64d9e5f088fe187022885779 /src/client/clouds.cpp | |
parent | 3e1904fa8c4aae3448d58b7e60545a4fdd8234f3 (diff) | |
download | minetest-f0bad0e2badbb7d4777aac7de1b50239bca4010a.tar.gz minetest-f0bad0e2badbb7d4777aac7de1b50239bca4010a.tar.bz2 minetest-f0bad0e2badbb7d4777aac7de1b50239bca4010a.zip |
Reserve vectors before pushing and other code quality changes (#11161)
Diffstat (limited to 'src/client/clouds.cpp')
-rw-r--r-- | src/client/clouds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/clouds.cpp b/src/client/clouds.cpp index 253dee8b9..5a075aaf0 100644 --- a/src/client/clouds.cpp +++ b/src/client/clouds.cpp @@ -170,7 +170,7 @@ void Clouds::render() // Read noise - std::vector<char> grid(m_cloud_radius_i * 2 * m_cloud_radius_i * 2); // vector<bool> is broken + std::vector<bool> grid(m_cloud_radius_i * 2 * m_cloud_radius_i * 2); std::vector<video::S3DVertex> vertices; vertices.reserve(16 * m_cloud_radius_i * m_cloud_radius_i); |