summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-4/tolchi.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index d70089085..bab1f0d88 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -319,6 +319,10 @@ function tolchi_tweaks {
// Select a bonus and purge it
.@vartp=relative_array_random(@csys_attr);
+ // Safety check
+ if (.@vartp < 1)
+ .@vartp=relative_array_random(@csys_attr);
+
// First time player bonus
if (!#FIRST_TIME) {
.@vartp=IOPT_RICHNESS;