]> git.localhorst.tv Git - blobs.git/commitdiff
old developers
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 30 Nov 2017 22:30:40 +0000 (23:30 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 30 Nov 2017 22:30:40 +0000 (23:30 +0100)
*sigh*

src/creature/goal.cpp

index e65a4dbf484ad743c23624c5fea28f225b9595ae..9000bc2dc10a61ba59776c033bd24a6a1ca3083d 100644 (file)
@@ -10,6 +10,7 @@
 #include "../world/Simulation.hpp"
 #include "../world/TileType.hpp"
 
+#include <cstring>
 #include <iostream>
 #include <glm/gtx/io.hpp>
 
@@ -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) {