diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index 817b02e1e7..826afc85fc 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -1169,7 +1169,6 @@ bool MapLoader::LoadNodes (MapData * map) int k; nodetype *mn; node_t* no; - uint16_t* used; int lumplen = map->Size(ML_NODES); int maxss = map->Size(ML_SSECTORS) / sizeof(subsectortype); diff --git a/src/rendering/swrenderer/textures/warpbuffer.h b/src/rendering/swrenderer/textures/warpbuffer.h index 16fd09b1fa..bbff5d9e72 100644 --- a/src/rendering/swrenderer/textures/warpbuffer.h +++ b/src/rendering/swrenderer/textures/warpbuffer.h @@ -64,10 +64,10 @@ void WarpBuffer(TYPE *Pixels, const TYPE *source, int width, int height, int xmu if (yf < 0) yf += height; int yt = yf; const TYPE *sourcep = Pixels + (x + ymask * x); - TYPE *dest = buffer; + TYPE *dest = buffer.data(); for (yt = height; yt; yt--, yf = (yf + 1) % height) *dest++ = sourcep[yf]; - memcpy(Pixels + (x + ymask*x), buffer, height * sizeof(TYPE)); + memcpy(Pixels + (x + ymask*x), buffer.data(), height * sizeof(TYPE)); } } else if (warptype == 2)