Added warning in makesdna to check for total struct sizes.

Found error in wipe struct, which was even constructed terrible weird :)
This commit is contained in:
Ton Roosendaal 2004-10-30 12:06:22 +00:00
parent c47029a710
commit 02b2fc5ec8
2 changed files with 7 additions and 4 deletions

@ -141,10 +141,7 @@ typedef struct Editing {
/* ************* Effect Variable Structs ********* */
typedef struct WipeVars {
float edgeWidth,angle;
short forward,spad1,spad2,spad3;
int ipad1;
float fpad1,fpad2;
short wipetype;
short forward, wipetype;
} WipeVars;
typedef struct GlowVars {

@ -747,6 +747,12 @@ int calculate_structlens(void)
dna_error = 1;
}
}
if(len % 4) {
printf("Sizeerror in struct: %s\n", types[structtype]);
dna_error = 1;
}
}
}
}