From fc6f5d1bfac9cfbfac8486c83258e59628dce6a0 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 29 Oct 2009 12:57:02 +0100 Subject: Fix initialisation of autoex in travel_exclude. Hopefully this fixes the autoremove-on-restore bug (2887690). --- crawl-ref/source/exclude.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index e68464cef5..211d3857b7 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -112,9 +112,9 @@ static opacity_excl opc_excl; travel_exclude::travel_exclude(const coord_def &p, int r, bool autoexcl, monster_type mons, bool vaultexcl) -: pos(p), radius(r), -los(los_def(p, opc_excl, bounds_radius(r))), -uptodate(false), autoex(autoex), mon(mons), vault(vaultexcl) + : pos(p), radius(r), + los(los_def(p, opc_excl, bounds_radius(r))), + uptodate(false), autoex(autoexcl), mon(mons), vault(vaultexcl) { set_los(); } -- cgit v1.2.3-54-g00ecf