From bb6930c4b733afe63784e44792b47d08a7ece2d8 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 9 Jul 2007 12:26:29 +0000 Subject: Force monsters generated with only a missile launcher to wield the launcher when being generated (instead of switching to it before firing the first shot). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1816 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/libutil.h') diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index f6915dbb4d..0f425ff7cd 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -135,6 +135,7 @@ public: { val = newval; } + unwind_var(T &val_) : val(val_), oldval(val_) { } ~unwind_var() { val = oldval; -- cgit v1.2.3-54-g00ecf