mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fix reference bug in readCSV()
This commit is contained in:
@@ -63,7 +63,7 @@ AddJSONWindow::AddJSONWindow(Window* parent, const SetP& set, bool sizer)
|
||||
}
|
||||
}
|
||||
|
||||
static ScriptValueP json_to_script(boost::json::value jv) {
|
||||
static ScriptValueP json_to_script(boost::json::value& jv) {
|
||||
if (jv == nullptr) return script_nil;
|
||||
else if (jv.is_null()) return script_nil;
|
||||
else if (jv.is_bool()) return to_script(jv.get_bool());
|
||||
@@ -237,7 +237,7 @@ void AddJSONWindow::onOk(wxCommandEvent&) {
|
||||
// Check for missing fields
|
||||
String missing_fields;
|
||||
check_table_headers(set->game, headers, _("JSON"), missing_fields);
|
||||
if (missing_fields.size() > 0) {
|
||||
if (!missing_fields.empty()) {
|
||||
queue_message(MESSAGE_WARNING, _ERROR_2_("import missing fields", _("JSON"), missing_fields));
|
||||
}
|
||||
// Produce cards from the table
|
||||
|
||||
Reference in New Issue
Block a user