summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 437b01c4fc..f8545bb11c 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -619,7 +619,7 @@ std::vector<SelItem> prompt_invent_items(
// Note: We handle any "special" character first, so that
// it can be used to override the others.
- if (other_valid_char != '\0' && keyin == other_valid_char)
+ if (other_valid_char != 0 && keyin == other_valid_char)
{
ret = PROMPT_GOT_SPECIAL;
break;
@@ -804,7 +804,7 @@ int prompt_invent_item( const char *prompt,
// Note: We handle any "special" character first, so that
// it can be used to override the others.
- if (other_valid_char != '\0' && keyin == other_valid_char)
+ if (other_valid_char != 0 && keyin == other_valid_char)
{
ret = PROMPT_GOT_SPECIAL;
break;