From 52bd9a771e2b94cec2491c97f418cc51d725d5b8 Mon Sep 17 00:00:00 2001 From: joschiwald Date: Mon, 3 Nov 2014 19:11:14 +0100 Subject: Core/NetworkIO: implemented undelete opcodes and moved char create/delete packets to new packet classes --- src/server/shared/Utilities/Util.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/shared/Utilities') diff --git a/src/server/shared/Utilities/Util.h b/src/server/shared/Utilities/Util.h index e2d8cd3a195..216fe08d64a 100644 --- a/src/server/shared/Utilities/Util.h +++ b/src/server/shared/Utilities/Util.h @@ -30,9 +30,11 @@ template struct Optional -{ - T value; - bool HasValue; +{ + Optional() : value(), HasValue(false) { } + + T value; + bool HasValue; }; // Searcher for map of structs -- cgit v1.2.3