mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-04 21:04:02 +00:00
hopefully fixed yet another C++20 bug
This commit is contained in:
parent
a70a9dc663
commit
1a70e54e24
@ -29,7 +29,7 @@ struct gamedata {
|
|||||||
::new (&record[index]) T(std::move(x));
|
::new (&record[index]) T(std::move(x));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
T& at = (T&) record[index];
|
T& at = *((T*) (void*) &(record[index]));
|
||||||
x = std::move(at);
|
x = std::move(at);
|
||||||
at.~T();
|
at.~T();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user