1
0
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:
Zeno Rogue 2024-05-16 21:11:13 +02:00
parent a70a9dc663
commit 1a70e54e24

View File

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