summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index ee535c1371..e061525409 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2747,7 +2747,8 @@ static void world_reacts()
if (you.num_turns != -1)
{
- you.num_turns++;
+ if (you.num_turns < LONG_MAX)
+ you.num_turns++;
if (env.turns_on_level < INT_MAX)
env.turns_on_level++;
update_turn_count();