Using Super.
This commit is contained in:
committed by
Alexander Harkness
parent
f931590bf0
commit
9ee47e5999
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
cNoteEntity::cNoteEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World):
|
||||
super(a_BlockType, a_BlockMeta, a_Pos, a_World),
|
||||
Super(a_BlockType, a_BlockMeta, a_Pos, a_World),
|
||||
m_Pitch(0)
|
||||
{
|
||||
ASSERT(a_BlockType == E_BLOCK_NOTE_BLOCK);
|
||||
@@ -22,7 +22,7 @@ cNoteEntity::cNoteEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i
|
||||
|
||||
void cNoteEntity::CopyFrom(const cBlockEntity & a_Src)
|
||||
{
|
||||
super::CopyFrom(a_Src);
|
||||
Super::CopyFrom(a_Src);
|
||||
auto & src = static_cast<const cNoteEntity &>(a_Src);
|
||||
m_Pitch = src.m_Pitch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user