mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix an incorrect assertion
This commit is contained in:
parent
ef3c33c5b0
commit
ff6a70288b
@ -257,7 +257,7 @@ static int sendMessageEnet(short ptype, short paylen, const void* payload) {
|
|||||||
ENetPacket* enetPacket;
|
ENetPacket* enetPacket;
|
||||||
ENetEvent event;
|
ENetEvent event;
|
||||||
|
|
||||||
LC_ASSERT(ServerMajorVersion > 5);
|
LC_ASSERT(ServerMajorVersion >= 5);
|
||||||
|
|
||||||
packet = malloc(sizeof(*packet) + paylen);
|
packet = malloc(sizeof(*packet) + paylen);
|
||||||
if (packet == NULL) {
|
if (packet == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user