Skip to content

Commit

Permalink
Fix incorrect virtual function implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 8, 2015
1 parent d2ebd7d commit 32a0bba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xrServerEntities/xrServer_Objects_Abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ class IServerEntity {
};

virtual ~IServerEntity() = 0;

// XXX: move to implementation
Flags32 m_editor_flags;
virtual void set_editor_flag(u32 mask) = 0;
void set_editor_flag(u32 mask) { m_editor_flags.set(mask, TRUE); }

public:
virtual void __stdcall Spawn_Write (NET_Packet &tNetPacket, BOOL bLocal) = 0;
Expand All @@ -147,7 +147,6 @@ class IServerEntity {
};

IC IServerEntity::~IServerEntity() {}
IC void IServerEntity::set_editor_flag(u32 mask) { m_editor_flags.set(mask, TRUE); }

#pragma warning(pop)

Expand Down

0 comments on commit 32a0bba

Please sign in to comment.