mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 19:29:19 +02:00
bug fixes for speed table creation and update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user