Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/gwdevhub/GWToolboxpp into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	GWToolboxdll/Widgets/Minimap/GameWorldRenderer.h
  • Loading branch information
3vcloud committed Jul 27, 2024
2 parents e946e16 + 1188225 commit 17c4cc7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions GWToolboxdll/Widgets/Minimap/GameWorldRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,19 @@ class GameWorldRenderer {

GenericPolyRenderable& operator=(GenericPolyRenderable&& other) noexcept
{
if (vb && vb != other.vb) {
vb->Release();
}
vb = other.vb; // Move the buffer!
other.vb = nullptr;
points = std::move(other.points);
other.points.clear();
vertices = std::move(other.vertices);
other.vertices.clear();

map_id = other.map_id;
col = other.col;
filled = other.filled;
vertices_processed = other.vertices_processed;

return *this;
}

Expand Down

0 comments on commit 17c4cc7

Please sign in to comment.