diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:41:22 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:41:22 -0800 |
commit | c282663a96ae9704a59c55c9300dbc8c49e0ef39 (patch) | |
tree | 071a26b8e58b8aac4d347c6a8200a4b01663abe1 /Source/Randomizer2Core.h | |
parent | bff40e55c9c55fbc8439bb225d1937b2d805e629 (diff) | |
download | witness-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.h | 3 |
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; | |||
7 | class Randomizer2Core { | 7 | class Randomizer2Core { |
8 | public: | 8 | public: |
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 | ||
13 | private: | 12 | private: |
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); |