From 2d9fd2ad18a64f10ca39df5ae2dcb8a6272d74f0 Mon Sep 17 00:00:00 2001 From: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:49:10 +1000 Subject: [PATCH] whoops --- src/pc/network/packets/packet_mod_list.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pc/network/packets/packet_mod_list.c b/src/pc/network/packets/packet_mod_list.c index 975d6820..6582a5d9 100644 --- a/src/pc/network/packets/packet_mod_list.c +++ b/src/pc/network/packets/packet_mod_list.c @@ -52,8 +52,11 @@ void network_send_mod_list(void) { u16 nameLength = strlen(mod->name); if (nameLength > 31) { nameLength = 31; } - u16 incompatibleLength = strlen(mod->incompatible); - if (incompatibleLength > 31) { incompatibleLength = 31; } + u16 incompatibleLength = 0; + if (mod->incompatible) { + incompatibleLength = strlen(mod->incompatible); + if (incompatibleLength > 31) { incompatibleLength = 31; } + } u16 relativePathLength = strlen(mod->relativePath); u64 modSize = mod->size;