Browse Source

Add missing virtual destructor required for RTTI (#311)

Signed-off-by: root <[email protected]>
Pip Potter 2 năm trước cách đây
mục cha
commit
653daac21e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Gem/Code/Include/DecalBus.h

+ 2 - 0
Gem/Code/Include/DecalBus.h

@@ -19,6 +19,8 @@ namespace MultiplayerSample
         AZ_RTTI(MultiplayerSample::SpawnDecalConfig, "{FC3DA616-174B-48FD-9BFB-BC277132FB47}");
         inline static void Reflect(AZ::ReflectContext* context);
 
+        virtual ~SpawnDecalConfig() = default;
+
         AZ::Data::AssetId m_materialAssetId; // Asset Id of the material.
         float m_scale = 1.0f;                // Scale in meters.
         float m_opacity = 1.0f;              // How visible the decal is.