summary refs log tree commit diff stats
path: root/Source/Randomizer2Core.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-18 09:41:22 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-18 09:41:22 -0800
commitc282663a96ae9704a59c55c9300dbc8c49e0ef39 (patch)
tree071a26b8e58b8aac4d347c6a8200a4b01663abe1 /Source/Randomizer2Core.h
parentbff40e55c9c55fbc8439bb225d1937b2d805e629 (diff)
downloadwitness-tutorializer-c282663a96ae9704a59c55c9300dbc8c49e0ef39.tar.gz
witness-tutorializer-c282663a96ae9704a59c55c9300dbc8c49e0ef39.tar.bz2
witness-tutorializer-c282663a96ae9704a59c55c9300dbc8c49e0ef39.zip
Add sanity checks for overwriting buffers
Diffstat (limited to 'Source/Randomizer2Core.h')
-rw-r--r--Source/Randomizer2Core.h3
1 files changed, 1 insertions, 2 deletions
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;
7class Randomizer2Core { 7class Randomizer2Core {
8public: 8public:
9 // CAUTION: Does not actually cut edges, just returns a list of suggested cuts. 9 // CAUTION: Does not actually cut edges, just returns a list of suggested cuts.
10 static std::vector<Pos> CutEdges(const Puzzle& p, size_t numEdges); 10 static std::vector<Pos> CutEdges(const Puzzle& p, size_t numEdges, bool allowEdges);
11 static std::vector<Pos> CutEdges2(const Puzzle& p, size_t numEdges);
12 11
13private: 12private:
14 static std::vector<Pos> CutEdgesInternal(const Puzzle& p, std::vector<Pos>& edges, size_t numEdges); 13 static std::vector<Pos> CutEdgesInternal(const Puzzle& p, std::vector<Pos>& edges, size_t numEdges);