Skip to content

Commit

Permalink
Server: Fix std::memcpy compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed May 28, 2024
1 parent 61ba8fc commit 2e9bc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/enginecallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ inline void MESSAGE_BEGIN(int msg_dest, int msg_type, const float *pOrigin = NUL
inline void WRITE_FLOAT(float val)
{
char bytes[sizeof(val)];
std::memcpy(bytes, &val, sizeof(bytes));
memcpy(bytes, &val, sizeof(bytes));

for (int i = 0; i < sizeof(bytes); i++)
{
Expand Down

0 comments on commit 2e9bc68

Please sign in to comment.