Fixed segmentation fault when copying textbox

This commit is contained in:
Yousef Khadadeh 2025-11-16 16:49:47 +03:00
parent 79f7135746
commit f0f289d785
13 changed files with 27 additions and 25 deletions

View file

@ -43,14 +43,14 @@ void DrawImage::remap_resource_ids(std::unordered_map<ServerClientID, ServerClie
}
#ifndef IS_SERVER
std::shared_ptr<DrawComponent> DrawImage::copy() const {
std::shared_ptr<DrawComponent> DrawImage::copy(DrawingProgram& drawP) const {
auto a = std::make_shared<DrawImage>();
a->d = d;
a->coords = coords;
return a;
}
std::shared_ptr<DrawComponent> DrawImage::deep_copy() const {
std::shared_ptr<DrawComponent> DrawImage::deep_copy(DrawingProgram& drawP) const {
auto a = std::make_shared<DrawImage>();
a->d = d;
a->coords = coords;