From 69a36c1092c772f05badbab400888712129072ba Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 18 May 2013 21:55:09 -0700 Subject: Fix silly bugs in the previous patch --- src/char/char.cpp | 3 +++ src/common/dumb_ptr.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/src/char/char.cpp b/src/char/char.cpp index 3fc2b87..cb2fae2 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -1707,7 +1707,10 @@ void parse_frommap(int fd) for (mmo_charstatus& cdi : char_data) { if (cdi.char_id == afi.char_id) + { + cd = &cdi; break; + } } assert (cd && "uh-oh - deleted while in queue?"); afi.delflag = 1; diff --git a/src/common/dumb_ptr.hpp b/src/common/dumb_ptr.hpp index 91293c6..9321036 100644 --- a/src/common/dumb_ptr.hpp +++ b/src/common/dumb_ptr.hpp @@ -98,6 +98,7 @@ public: void new_(size_t z) { impl = new T[z](); + sz = z; } static dumb_ptr make(size_t z) -- cgit v1.2.3-60-g2f50