diff --git a/src/r_draw_pal.cpp b/src/r_draw_pal.cpp index b508dd221..cfb55a670 100644 --- a/src/r_draw_pal.cpp +++ b/src/r_draw_pal.cpp @@ -2564,7 +2564,7 @@ namespace swrenderer ///////////////////////////////////////////////////////////////////////// DrawSlabPalCommand::DrawSlabPalCommand(int dx, fixed_t v, int dy, fixed_t vi, const uint8_t *vptr, uint8_t *p, const uint8_t *colormap) - : _dx(dx), _v(v), _dy(dy), _vi(vi), _vptr(vptr), _p(p), _colormap(colormap) + : _dx(dx), _v(v), _dy(dy), _vi(vi), _vvptr(vptr), _p(p), _colormap(colormap) { using namespace drawerargs; _pitch = dc_pitch; @@ -2578,7 +2578,7 @@ namespace swrenderer int pitch = _pitch; int width = _dx; const uint8_t *colormap = _colormap; - const uint8_t *source = _vptr; + const uint8_t *source = _vvptr; fixed_t fracpos = _v; fixed_t iscale = _vi; diff --git a/src/r_draw_pal.h b/src/r_draw_pal.h index a2400d275..f2b1f0571 100644 --- a/src/r_draw_pal.h +++ b/src/r_draw_pal.h @@ -230,7 +230,7 @@ namespace swrenderer fixed_t _v; int _dy; fixed_t _vi; - const uint8_t *_vptr; + const uint8_t *_vvptr; uint8_t *_p; const uint8_t *_colormap; int _pitch;