File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff 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// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ constexpr bool UNUSED = false;
163163#define DEFINE_CLASS (Name ) \
164164struct Name : public Packet { \
165165 public: \
166+ virtual ~Name () {} \
166167 virtual void toNetworkString (NetworkString* ns) const OVERRIDE; \
167168 virtual void fromNetworkString (NetworkString* ns) OVERRIDE;
168169
You can’t perform that action at this time.
0 commit comments