diff --git a/tests/monster_test_generated.h b/tests/monster_test_generated.h index 1079c0801..d2a0d5050 100644 --- a/tests/monster_test_generated.h +++ b/tests/monster_test_generated.h @@ -756,8 +756,7 @@ struct Monster FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { return GetPointer *>(VT_TESTNESTEDFLATBUFFER); } const MyGame::Example::Monster *testnestedflatbuffer_nested_root() const { - auto data = testnestedflatbuffer()->Data(); - return flatbuffers::GetRoot(data); + return flatbuffers::GetRoot(testnestedflatbuffer()->Data()); } const Stat *testempty() const { return GetPointer(VT_TESTEMPTY);