update scripts and structures

fix a crash if check-structures-sanity was called with a lua expression that evaluated to nil
develop
Ben Lubar 2020-02-15 12:04:00 -06:00
parent 8ddec5d8dc
commit 122169a559
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
3 changed files with 7 additions and 3 deletions

@ -1 +1 @@
Subproject commit d8e10fe0cd24e33aab412d13ab650dcdb49d718d
Subproject commit c98b89239c387f967a8656c863f9a923c26244d2

@ -37,7 +37,7 @@ DFhackCExport command_result plugin_init(color_ostream &, std::vector<PluginComm
"performs a sanity check on df-structures",
command,
false,
"usage: check-structures-sanity [-enums] [-sizes] [starting_point]\n"
"check-structures-sanity [-enums] [-sizes] [starting_point]\n"
"\n"
"-enums: report unexpected or unnamed enum or bitfield values\n"
"-sizes: report struct and class sizes that don't match structures (requires sizecheck)\n"
@ -154,6 +154,10 @@ static command_result command(color_ostream & out, std::vector<std::string> & pa
{
return CR_FAILURE;
}
if (!lua_touserdata(State, -1))
{
return CR_WRONG_USAGE;
}
ToCheck ref;
ref.path.push_back(parameters.at(0));

@ -1 +1 @@
Subproject commit b1e46e818a6c44fe8a9688754f511a8e3aa18668
Subproject commit 074f7580865b643011ea2e0fcfca55b5d5a7bbe8