CCreateInstanceCommand: Make use of override where applicable

This commit is contained in:
Lioncash 2020-06-28 02:56:43 -04:00
parent 68a8f236fa
commit 87be8f6957
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ CCreateInstanceCommand::CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTem
, mpNewInstance(nullptr) , mpNewInstance(nullptr)
, mpNewNode(nullptr) , mpNewNode(nullptr)
{ {
ASSERT(mLayerIndex != -1); ASSERT(mLayerIndex != UINT32_MAX);
} }
void CCreateInstanceCommand::undo() void CCreateInstanceCommand::undo()

View File

@ -24,9 +24,9 @@ class CCreateInstanceCommand : public IUndoCommand
public: public:
CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTemplate *pTemplate, CScriptLayer *pLayer, const CVector3f& rkPosition); CCreateInstanceCommand(CWorldEditor *pEditor, CScriptTemplate *pTemplate, CScriptLayer *pLayer, const CVector3f& rkPosition);
void undo(); void undo() override;
void redo(); void redo() override;
bool AffectsCleanState() const { return true; } bool AffectsCleanState() const override { return true; }
}; };
#endif // CCREATEINSTANCECOMMAND_H #endif // CCREATEINSTANCECOMMAND_H