diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/externs.h | 4 | ||||
-rw-r--r-- | crawl-ref/source/player.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 66c056c8a6..fdd48acfbb 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -530,7 +530,9 @@ public: bool is_global() const; void make_global(); - void assert_validity() const; + // Not const since it now tries to patch up problems instead of + // merely asserting. + void assert_validity(); const std::string short_name() const; diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 5ff5f3fa21..781ea5e7fb 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6765,7 +6765,7 @@ void PlaceInfo::make_global() branch = -1; } -void PlaceInfo::assert_validity() const +void PlaceInfo::assert_validity() { // Check that level_type and branch match up. ASSERT(is_global() |