Adjusted LAYERS_PER_CONTACT from 3 to 4. This is not a preferred

solution;  it would be much better to make the value adjustible, but
the array of tiles sized to LAYERS_PER_CONTACT is a Region structure,
and the routine that frees the Region structures does not have a way
to call a routine to take additional measures like free'ing a sub-
structure of the Region.  A proper solution will require some work.
This commit is contained in:
Tim Edwards 2021-11-01 09:26:21 -04:00
parent c82c96cb73
commit 3e07197dfa
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
8.3.221
8.3.222

View File

@ -423,7 +423,7 @@ ResFindNewContactTiles(contacts)
}
}
#ifdef PARANOID
if (contacts->cp_currentcontact > LAYERS_PER_CONTACT)
if (contacts->cp_currentcontact >= LAYERS_PER_CONTACT)
{
TxError("Error: Not enough space allocated for contact nodes\n");
}

View File

@ -9,7 +9,7 @@
#ifndef _RESIS_H
#define _RESIS_H
#define LAYERS_PER_CONTACT 3
#define LAYERS_PER_CONTACT 4
#define TILES_PER_JUNCTION 2
typedef struct contactpoint