16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 20:39:18 +02:00

bug fixes for speed table creation and update

This commit is contained in:
tmj-fstate
2017-08-15 19:10:43 +02:00
parent 7e51d5d2e0
commit 72760ee9a8
2 changed files with 27 additions and 18 deletions

View File

@@ -314,7 +314,9 @@ void TSubRect::NodeAdd(TGroundNode *Node)
// przygotowanie sektora do renderowania
void TSubRect::Sort() {
assert( tTracks == nullptr );
if( tTracks != nullptr ) {
SafeDelete( tTracks );
}
if( iTracks > 0 ) {
tTracks = new TTrack *[ iTracks ]; // tworzenie tabeli torów do renderowania pojazdów
int i = 0;