17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-09 10:12:24 +01:00

fix: the bugs and vulnerabilities SonarCloud reports on PR #216

This commit is contained in:
2026-11-07 22:11:08 +01:00
parent 8e85def98f
commit 7667e5b2ec
65 changed files with 910 additions and 121 deletions

View File

@@ -11,8 +11,6 @@ http://mozilla.org/MPL/2.0/.
#include "rendering/vulkan14/vulkan14grass.h"
#include "utilities/Logs.h"
#include <cstring>
namespace vk14
{
@@ -132,7 +130,7 @@ grass_field::chunk_images const *grass_field::images(chunk_draw const &Draw)
}
table[4 * 4 + 0] = Draw.share;
table[4 * 4 + 1] = Draw.chunk;
if ((false == chunk.table_made) || (std::memcmp(table.data(), chunk.table.data(), sizeof(table)) != 0) || (chunk.images[3] == nullptr))
if ((false == chunk.table_made) || (table != chunk.table) || (chunk.images[3] == nullptr))
{
auto map{chunk.images[3]};
if (map == nullptr)