Fix undo not updating air block map

This commit is contained in:
Tamás Bálint Misius 2021-04-11 21:44:08 +02:00
parent 1e933287ba
commit 1859125218
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -556,6 +556,7 @@ void Simulation::Restore(const Snapshot & snap)
parts[i].type = 0;
std::copy(snap.Particles.begin(), snap.Particles.end(), parts);
parts_lastActiveIndex = NPART-1;
air->RecalculateBlockAirMaps();
RecalcFreeParticles(false);
std::copy(snap.PortalParticles.begin(), snap.PortalParticles.end(), &portalp[0][0][0]);
std::copy(snap.WirelessData.begin(), snap.WirelessData.end(), &wireless[0][0]);