From ca1a87ef7d32a938c1ed3a59f8638cca54071a24 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 7 Feb 2015 13:05:17 -0500 Subject: ResultVal: Fixed compilation when reassigning a ResultVal. --- src/core/hle/result.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 948b9e38e..9c6ca29e5 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -307,14 +307,14 @@ public: } ResultVal& operator=(const ResultVal& o) { - if (*this) { - if (o) { + if (!empty()) { + if (!o.empty()) { *GetPointer() = *o.GetPointer(); } else { GetPointer()->~T(); } } else { - if (o) { + if (!o.empty()) { new (&storage) T(*o.GetPointer()); } } -- cgit v1.2.3