Fix possible cast failure

This commit is contained in:
Phillip Stephens 2015-12-05 19:09:23 -08:00
parent 59e4d9df13
commit d3205718f2
1 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,7 @@ struct MAPA : BigDNA
SaveStation = 34,
MissileStation = 37
};
virtual ~IMappableObject() {}
};
struct MappableObjectMP1_2 : IMappableObject
@ -180,6 +181,7 @@ struct MAPA : BigDNA
Seek<DNA_COUNT(4), Athena::Current> seek1;
Value<atVec4f> transformMtx[3];
Seek<DNA_COUNT(0x10), Athena::Current> seek2;
virtual ~MappableObjectMP1_2() {}
};
struct MappableObjectMP3 : IMappableObject
@ -192,6 +194,7 @@ struct MAPA : BigDNA
Seek<DNA_COUNT(4), Athena::Current> seek1;
Value<atVec4f> transformMtx[3];
Seek<DNA_COUNT(0x10), Athena::Current> seek2;
virtual ~MappableObjectMP3() {}
};
std::vector<std::unique_ptr<IMappableObject>> mappableObjects;