Skip to content

Commit

Permalink
Prevent levels > 10 from crashing the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Aug 18, 2018
1 parent 3fabd03 commit 6763ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/monstergen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ end

-- Begin script
local enemies = {}
if(CURRENT_LEVEL > 0 and CURRENT_LEVEL < 10) then
if(CURRENT_LEVEL > 0) then
if (CURRENT_LEVEL == 1) then
enemies = concat(enemies, pests)
enemies = concat(enemies, misc)
Expand Down

0 comments on commit 6763ef0

Please sign in to comment.