diff --git a/samples/monster_generated.h b/samples/monster_generated.h index 17d95d3f3..945d992fc 100755 --- a/samples/monster_generated.h +++ b/samples/monster_generated.h @@ -39,7 +39,7 @@ inline const char *EnumNameAny(Any e) { return EnumNamesAny()[e]; } inline bool VerifyAny(flatbuffers::Verifier &verifier, const void *union_obj, Any type); -MANUALLY_ALIGNED_STRUCT(4) Vec3 { +MANUALLY_ALIGNED_STRUCT(4) Vec3 FLATBUFFERS_FINAL_CLASS { private: float x_; float y_; @@ -55,7 +55,7 @@ MANUALLY_ALIGNED_STRUCT(4) Vec3 { }; STRUCT_END(Vec3, 12); -struct Monster : private flatbuffers::Table { +struct Monster FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { const Vec3 *pos() const { return GetStruct(4); } int16_t mana() const { return GetField(6, 150); } int16_t hp() const { return GetField(8, 100); }