* (Non-trivial) fix to the "opStack corrupted in compiled code" bug
This commit is contained in:
1 parent
8295a83897
commit
35cb35ff61
5 files changed
+93
-20
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user