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:
parent
c82c96cb73
commit
3e07197dfa
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue