From 0137e71f6b56f0333b120f807e6d791b6b29aa4b Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 12 Apr 2021 10:12:03 +0200 Subject: Added override specifiers to overridden functions. Needed for clang-11 compatibility. --- src/BlockEntities/CommandBlockEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BlockEntities') diff --git a/src/BlockEntities/CommandBlockEntity.cpp b/src/BlockEntities/CommandBlockEntity.cpp index 34b0fd5f5..b747501c8 100644 --- a/src/BlockEntities/CommandBlockEntity.cpp +++ b/src/BlockEntities/CommandBlockEntity.cpp @@ -166,7 +166,7 @@ void cCommandBlockEntity::Execute() public: CommandBlockOutCb(cCommandBlockEntity * a_CmdBlock) : m_CmdBlock(a_CmdBlock) {} - virtual void Out(const AString & a_Text) + virtual void Out(const AString & a_Text) override { // Overwrite field m_CmdBlock->SetLastOutput(cClientHandle::FormatChatPrefix(m_CmdBlock->GetWorld()->ShouldUseChatPrefixes(), "SUCCESS", cChatColor::Green, cChatColor::White) + a_Text); -- cgit v1.2.3