mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix serialization of std::time_t by casting to u64 first (#8353)
Fixes #8332
This commit is contained in:
@@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ctime>
|
||||
#include "util/pointer.h"
|
||||
#include "util/numeric.h"
|
||||
#include "networkprotocol.h"
|
||||
@@ -88,9 +87,6 @@ public:
|
||||
NetworkPacket &operator>>(u64 &dst);
|
||||
NetworkPacket &operator<<(u64 src);
|
||||
|
||||
NetworkPacket &operator>>(std::time_t &dst);
|
||||
NetworkPacket &operator<<(std::time_t src);
|
||||
|
||||
NetworkPacket &operator>>(float &dst);
|
||||
NetworkPacket &operator<<(float src);
|
||||
|
||||
|
Reference in New Issue
Block a user