* (Non-trivial) fix to the "opStack corrupted in compiled code" bug
This commit is contained in:
parent
8295a83897
commit
35cb35ff61
5 changed files with 93 additions and 20 deletions
|
@ -419,6 +419,12 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
|
||||
Com_Memset(jused, 0, header->instructionCount+2);
|
||||
|
||||
// ensure that the optimisation pass knows about all the jump
|
||||
// table targets
|
||||
for( i = 0; i < vm->numJumpTableTargets; i++ ) {
|
||||
jused[ *(int *)(vm->jumpTableTargets + ( i * sizeof( int ) ) ) ] = 1;
|
||||
}
|
||||
|
||||
for(pass=0;pass<2;pass++) {
|
||||
oc0 = -23423;
|
||||
oc1 = -234354;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue