From 89c408965eab8214ea82b87d595b214b3a8a5afb Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 6 Dec 2015 16:47:19 -0600 Subject: [PATCH] Can't call constructors from other constructors --- src/xenia/kernel/xobject.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index 22b8b50ff..50fb69944 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -34,10 +34,11 @@ XObject::XObject(Type type) XObject::XObject(KernelState* kernel_state, Type type) : kernel_state_(kernel_state), + type_(type), pointer_ref_count_(1), guest_object_ptr_(0), allocated_guest_object_(false) { - XObject::XObject(type); + handles_.reserve(10); // TODO: Assert kernel_state != nullptr in this constructor. if (kernel_state) {