use const_cast for colfunccopy
idk its from rr idk why it was like this
This commit is contained in:
1 parent
24eb888af3
commit
99ebca51d5
1 file changed
+2
-6
+2
-6
@@ -664,9 +664,7 @@ void R_DrawMaskedColumn(drawcolumndata_t* dc, column_t *column)
|
||||
drawcolumndata_t dc_copy = *dc;
|
||||
void (*colfunccopy)(drawcolumndata_t*);
|
||||
colfunccopy = colfunc;
|
||||
colfunccopy((drawcolumndata_t*)(&dc_copy));
|
||||
|
||||
//colfunc();
|
||||
colfunccopy(const_cast<drawcolumndata_t*>(&dc_copy));
|
||||
}
|
||||
column = (column_t *)((UINT8 *)column + column->length + 4);
|
||||
}
|
||||
@@ -729,9 +727,7 @@ static void R_DrawFlippedMaskedColumn(drawcolumndata_t* dc, column_t *column)
|
||||
drawcolumndata_t dc_copy = *dc;
|
||||
void (*colfunccopy)(drawcolumndata_t*);
|
||||
colfunccopy = colfunc;
|
||||
colfunccopy((drawcolumndata_t*)(&dc_copy));
|
||||
|
||||
//colfunc();
|
||||
colfunccopy(const_cast<drawcolumndata_t*>(&dc_copy));
|
||||
|
||||
Z_Free(dc->source);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user