From: Daniel Karbach Date: Thu, 30 Nov 2017 22:30:40 +0000 (+0100) Subject: old developers X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=8370e531bf7d0ec860a69591ead1e0833e65998f;p=blobs.git old developers *sigh* --- diff --git a/src/creature/goal.cpp b/src/creature/goal.cpp index e65a4db..9000bc2 100644 --- a/src/creature/goal.cpp +++ b/src/creature/goal.cpp @@ -10,6 +10,7 @@ #include "../world/Simulation.hpp" #include "../world/TileType.hpp" +#include #include #include @@ -241,7 +242,7 @@ void LocateResourceGoal::SearchVicinity() { glm::ivec2 end(glm::min(glm::ivec2(planet.SideLength()), loc + seek_radius + glm::ivec2(1))); double rating[end.y - begin.y][end.x - begin.x]; - std::memset(rating, 0, sizeof(double) * (end.y - begin.y) * (end.x - begin.x)) + std::memset(rating, 0, sizeof(double) * (end.y - begin.y) * (end.x - begin.x)); // find close and rich field for (int y = begin.y; y < end.y; ++y) {