diff options
| author | Charlie Blake | 2018-06-28 14:19:31 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-28 14:19:31 +0100 |
| commit | c84d8ccf133bc49c44c185dac7b49a46b8878ec1 (patch) | |
| tree | 6552511569ab94e28036c03ce5e889630d8df045 /src/main/game/move.cpp | |
| parent | Add kplus unit tests (diff) | |
| download | metasol-c84d8ccf133bc49c44c185dac7b49a46b8878ec1.tar.gz metasol-c84d8ccf133bc49c44c185dac7b49a46b8878ec1.zip | |
Implement to pass unit tests
Diffstat (limited to 'src/main/game/move.cpp')
| -rw-r--r-- | src/main/game/move.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/move.cpp b/src/main/game/move.cpp index 9e45c66..c51a120 100644 --- a/src/main/game/move.cpp +++ b/src/main/game/move.cpp @@ -8,7 +8,7 @@ move::move(mtype ty, pile::ref f, pile::ref t, pile::size_type i, bool reveal_mo type(ty), from(f), to(t), count(i), reveal_move(reveal_move_) { #ifndef NDEBUG if (ty == mtype::regular) assert(i == 1); - else assert(i >= 1); + else if (ty != mtype::stock_to_waste) assert(i >= 1); #endif } |
