diff options
| author | joschiwald <joschiwald.trinity@gmail.com> | 2014-11-03 19:11:14 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2014-11-03 19:11:14 +0100 |
| commit | 52bd9a771e2b94cec2491c97f418cc51d725d5b8 (patch) | |
| tree | d380694d84c950cd5b8f8e440e1c68bb8f359aed /src/server/shared/Utilities | |
| parent | 064154c54018bb2c1657e4febf86ecc7c87b41e1 (diff) | |
Core/NetworkIO: implemented undelete opcodes and moved char create/delete packets to new packet classes
Diffstat (limited to 'src/server/shared/Utilities')
| -rw-r--r-- | src/server/shared/Utilities/Util.h | 8 |
1 files changed, 5 insertions, 3 deletions
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<typename T> struct Optional -{ - T value; - bool HasValue; +{ + Optional() : value(), HasValue(false) { } + + T value; + bool HasValue; }; // Searcher for map of structs |
