diff options
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index ec1d189f44..4c295b27cb 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -1155,12 +1155,15 @@ LevelStashes &StashTracker::get_current_level() LevelStashes *StashTracker::find_current_level() { + if (is_level_untrackable()) + return (NULL); + std::vector<LevelStashes>::iterator iter = levels.begin(); for ( ; iter != levels.end() && !iter->isBelowPlayer(); iter++) { if (iter->isCurrent()) return &*iter; } - return NULL; + return (NULL); } |