From 168e5050bba7e5aaa456390e9ba83a48b563fdf1 Mon Sep 17 00:00:00 2001 From: capostrophic Date: Mon, 29 Jul 2019 15:50:19 +0300 Subject: [PATCH] Ignore an extra number argument in ModRegion (bug #5110) --- CHANGELOG.md | 1 + components/compiler/extensions0.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7ce625401..213ba55d3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,6 +115,7 @@ Bug #5092: NPCs with enchanted weapons play sound when out of charges Bug #5093: Hand to hand sound plays on knocked out enemies Bug #5099: Non-swimming enemies will enter water if player is water walking + Bug #5110: ModRegion with a redundant numerical argument breaks script execution Feature #1774: Handle AvoidNode Feature #2229: Improve pathfinding AI Feature #3025: Analogue gamepad movement controls diff --git a/components/compiler/extensions0.cpp b/components/compiler/extensions0.cpp index 5b60f9d6d5..7ccfb92859 100644 --- a/components/compiler/extensions0.cpp +++ b/components/compiler/extensions0.cpp @@ -340,7 +340,7 @@ namespace Compiler extensions.registerFunction ("getmasserphase", 'l', "", opcodeGetMasserPhase); extensions.registerFunction ("getsecundaphase", 'l', "", opcodeGetSecundaPhase); extensions.registerFunction ("getcurrentweather", 'l', "", opcodeGetCurrentWeather); - extensions.registerInstruction ("modregion", "S/llllllllll", opcodeModRegion); + extensions.registerInstruction ("modregion", "S/llllllllllX", opcodeModRegion); } }