read_schematic_replacements: ensure fields are strings (#5726)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 8 May 2017 18:43:03 +0000 (20:43 +0200)
committerGitHub <noreply@github.com>
Mon, 8 May 2017 18:43:03 +0000 (20:43 +0200)
commitc07c642ab091b7250ecdc5defee1fec26ba73dc4
tree7b84adc4330107416b3a0aee3d4a6b61bb920137
parent5e04f1a3357a618bed6d36b6a7439279b758fc8e
read_schematic_replacements: ensure fields are strings (#5726)

* read_schematic_replacements: ensure fields are strings

add a type check before reading strings on read_schematic_replacements deserializer

* throw LuaError instead of asserting the whole client
src/script/lua_api/l_mapgen.cpp