diff --git a/drawing.cpp b/drawing.cpp index ab55c01b..bba8ac77 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2732,8 +2732,8 @@ EX void drawqueue() { } #if HDR -template T& queuea(PPR prio, U... u) { - ptds.push_back(unique_ptr(new T (u...))); +template T& queuea(PPR prio, U&&... u) { + ptds.push_back(unique_ptr(new T (std::forward(u)...))); ptds.back()->prio = prio; return (T&) *ptds.back(); }