diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index 546d7a3a9..30a6436fa 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -67,7 +67,7 @@ Emulator* XObject::emulator() const { return kernel_state_->emulator_; } KernelState* XObject::kernel_state() const { return kernel_state_; } Memory* XObject::memory() const { return kernel_state_->memory(); } -XObject::Type XObject::type() { return type_; } +XObject::Type XObject::type() const { return type_; } void XObject::RetainHandle() { kernel_state_->object_table()->RetainHandle(handles_[0]); diff --git a/src/xenia/kernel/xobject.h b/src/xenia/kernel/xobject.h index 280250ca5..23ab38d6e 100644 --- a/src/xenia/kernel/xobject.h +++ b/src/xenia/kernel/xobject.h @@ -134,7 +134,7 @@ class XObject { KernelState* kernel_state() const; Memory* memory() const; - Type type(); + Type type() const; // Returns the primary handle of this object. X_HANDLE handle() const { return handles_[0]; }