summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-03-19 02:51:16 -0400
committerNeil Moore <neil@s-z.org>2014-03-19 02:51:16 -0400
commit9e04ae6d8e5de4db1a9b565c07997a33414ebb2d (patch)
tree89e77a0c40e70d8c42ad9fac1921b61f8e394365 /crawl-ref/source/invent.cc
parentf421e69a4b27aebbc629b5f5ebbd8fe66e2a03f5 (diff)
downloadcrawl-ref-9e04ae6d8e5de4db1a9b565c07997a33414ebb2d.tar.gz
crawl-ref-9e04ae6d8e5de4db1a9b565c07997a33414ebb2d.zip
Initialise a member.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 5d9378d6f1..2c678854b4 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -66,7 +66,8 @@ string InvTitle::get_text(const bool) const
}
InvEntry::InvEntry(const item_def &i, bool show_bg)
- : MenuEntry("", MEL_ITEM), show_background(show_bg), item(&i)
+ : MenuEntry("", MEL_ITEM), show_background(show_bg), item(&i),
+ show_weight(false)
{
data = const_cast<item_def *>(item);