summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h
index d7b59c6cb4..8d07f41206 100644
--- a/crawl-ref/source/stuff.h
+++ b/crawl-ref/source/stuff.h
@@ -162,8 +162,9 @@ void zap_los_monsters();
class rng_save_excursion
{
public:
- rng_save_excursion() { push_rng_state(); }
- ~rng_save_excursion() { pop_rng_state(); }
+ rng_save_excursion(long seed) { push_rng_state(); seed_rng(seed); }
+ rng_save_excursion() { push_rng_state(); }
+ ~rng_save_excursion() { pop_rng_state(); }
};
template<typename Iterator>