Skip to content

Commit 27944dd

Browse files
committed
Try to fix some compilation errors
1 parent 8f9daca commit 27944dd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/modes/free_for_all.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ std::shared_ptr<WorldPacket> FreeForAll::saveCompleteState(std::shared_ptr<STKPe
308308
auto packet = std::make_shared<FFAWorldCompleteStatePacket>();
309309
for (unsigned i = 0; i < m_scores.size(); i++)
310310
packet->scores.push_back(m_scores[i]);
311+
312+
return packet;
311313
} // saveCompleteState
312314

313315
// ----------------------------------------------------------------------------

src/network/packet_types.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ constexpr bool UNUSED = false;
163163
#define DEFINE_CLASS(Name) \
164164
struct Name: public Packet { \
165165
public: \
166+
virtual ~Name() {} \
166167
virtual void toNetworkString(NetworkString* ns) const OVERRIDE; \
167168
virtual void fromNetworkString(NetworkString* ns) OVERRIDE;
168169

0 commit comments

Comments
 (0)