mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-04 23:45:17 +01:00
590f6a018a
m_looked kept raw pointers to the vehicles and their entries after look_around() returned, and vehicle_removed() erases the entry without touching it. Nothing read it outside a look, so nothing went wrong, but a later use could have reached a freed vehicle. look_around() now empties it at its end; the vector keeps its memory for the next look.