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)
, mpNewNode(nullptr)
{
ASSERT(mLayerIndex != -1);
ASSERT(mLayerIndex != UINT32_MAX);
}
void CCreateInstanceCommand::undo()

View File

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