mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +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));
|
||||
}
|
||||
else {
|
||||
T& at = (T&) record[index];
|
||||
T& at = *((T*) (void*) &(record[index]));
|
||||
x = std::move(at);
|
||||
at.~T();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user