diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-31 23:32:46 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-31 23:49:36 +0200 |
commit | d051848d19f745471e9179f0aca76a1aa0bd22d6 (patch) | |
tree | 50035d06482be1a5cb57f6ab226bb820f4c967bf /crawl-ref/source/externs.h | |
parent | 3ef95bb148bdda6eea384d85c9c9ae012d273686 (diff) | |
download | crawl-ref-d051848d19f745471e9179f0aca76a1aa0bd22d6.tar.gz crawl-ref-d051848d19f745471e9179f0aca76a1aa0bd22d6.zip |
Fix xg not recognizing certain unidentified items.
This might be not the only use of item_def::is_valid() that became broken
with introduction of NUM_FOO meaning "unidentified", but since a vast majority
of calls refer to real items, this can't be done by default.
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index e443ea62c7..179e99d72b 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -566,7 +566,7 @@ public: bool held_by_monster() const; bool defined() const; - bool is_valid() const; + bool is_valid(bool info = false) const; // Returns true if this item should be preserved as far as possible. bool is_critical() const; |