From c282663a96ae9704a59c55c9300dbc8c49e0ef39 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 18 Nov 2019 09:41:22 -0800 Subject: Add sanity checks for overwriting buffers --- Source/Randomizer2Core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Randomizer2Core.h') diff --git a/Source/Randomizer2Core.h b/Source/Randomizer2Core.h index 63ba6a8..443f893 100644 --- a/Source/Randomizer2Core.h +++ b/Source/Randomizer2Core.h @@ -7,8 +7,7 @@ class Puzzle; class Randomizer2Core { public: // CAUTION: Does not actually cut edges, just returns a list of suggested cuts. - static std::vector CutEdges(const Puzzle& p, size_t numEdges); - static std::vector CutEdges2(const Puzzle& p, size_t numEdges); + static std::vector CutEdges(const Puzzle& p, size_t numEdges, bool allowEdges); private: static std::vector CutEdgesInternal(const Puzzle& p, std::vector& edges, size_t numEdges); -- cgit 1.4.1