Browse Source

ResultVal: Fixed compilation when reassigning a ResultVal.

pull/15/merge
Subv 11 years ago
committed by Yuri Kunde Schlesner
parent
commit
ca1a87ef7d
  1. 6
      src/core/hle/result.h

6
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());
}
}

Loading…
Cancel
Save