minimal: Fix crash due to assertion fail
authorANAND <ClobberXD@gmail.com>
Fri, 3 May 2019 12:44:05 +0000 (18:14 +0530)
committersfan5 <sfan5@live.de>
Fri, 3 May 2019 12:44:05 +0000 (14:44 +0200)
games/minimal/mods/test/init.lua

index 4806ba4fca0cb88a91bf0a05cd4d7b653d1d12d3..2692cf4253ceede1243b1dfb63c633b6a96dca94 100644 (file)
@@ -19,7 +19,7 @@ local function run_hpchangereason_tests(player)
        assert(expect == nil)
 
        expect = { a = 234, type = "set_hp", from = "mod" }
-       player:set_hp(10, { a= 234 })
+       player:set_hp(7, { a= 234 })
        assert(expect == nil)
 
        expect = { df = 3458973454, type = "fall", from = "mod" }