summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c5bf209a6..bb6a13fd9 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5767,7 +5767,6 @@ int menu_countoptions(const char* str, int max_count, int* total)
int bogus_total;
nullpo_ret(str);
- nullpo_ret(total);
if( total == NULL )
total = &bogus_total;
++(*total);