From eeccf6b5d6c8f11e9e45b93845d3a5e2aadefe5b Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 9 Apr 2021 13:30:22 +0100 Subject: [PATCH] Fix MSVC build with -DNONET=1 Not sure why this worked on Linux without this stub --- SourceX/dvlnet/packet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SourceX/dvlnet/packet.h b/SourceX/dvlnet/packet.h index 6f1d4071e..926ee1fef 100644 --- a/SourceX/dvlnet/packet.h +++ b/SourceX/dvlnet/packet.h @@ -34,6 +34,9 @@ typedef int turn_t; // change int to something else in devilution code late typedef int leaveinfo_t; // also change later #ifndef NONET typedef std::array key_t; +#else +// Stub out the key_t defintion as we're not doing any encryption. +using key_t = uint8_t; #endif static constexpr plr_t PLR_MASTER = 0xFE;