From b0d5bb1c4bafda99ffe37c2c304453f6ed45707c Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 7 Dec 2015 09:53:04 -0800 Subject: [PATCH] Fixed language for generators not being set correctly. Change-Id: I36c1f05efa836b32635e3274ac0ba976a8961bdd Tested: on Linux. --- src/flatc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flatc.cpp b/src/flatc.cpp index a51e488d1..ead3a7c29 100644 --- a/src/flatc.cpp +++ b/src/flatc.cpp @@ -268,7 +268,7 @@ int main(int argc, const char *argv[]) { flatbuffers::StripExtension(*file_it)); for (size_t i = 0; i < num_generators; ++i) { - opts.lang = generators[i].lang; + parser->opts.lang = generators[i].lang; if (generator_enabled[i]) { if (!print_make_rules) { flatbuffers::EnsureDirExists(output_path);