mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-12 16:00:59 +00:00
[Lua] Fix EnforceNumberAndPack for bool type (#6576)
This commit is contained in:
@@ -17,6 +17,7 @@ local function checkReadBuffer(buf, offset, sizePrefix)
|
||||
assert(mon:Hp() == 80, "Monster Hp is not 80")
|
||||
assert(mon:Mana() == 150, "Monster Mana is not 150")
|
||||
assert(mon:Name() == "MyMonster", "Monster Name is not MyMonster")
|
||||
assert(mon:Testbool() == true)
|
||||
|
||||
local vec = assert(mon:Pos(), "Monster Position is nil")
|
||||
assert(vec:X() == 1.0)
|
||||
|
||||
Reference in New Issue
Block a user