From b9cbb99adfd5b6959ac4f9667f29b0bf48d4a9a1 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 23 Sep 2013 22:40:01 +0200 Subject: Pos operator+ fix --- muse2/muse/pos.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muse2/muse/pos.cpp b/muse2/muse/pos.cpp index efa847cc..2d75dc4e 100644 --- a/muse2/muse/pos.cpp +++ b/muse2/muse/pos.cpp @@ -168,7 +168,7 @@ Pos& Pos::operator+=(int a) Pos operator+(Pos a, int b) { - Pos c; + Pos c = a; c.setType(a.type()); return c += b; } -- cgit v1.2.3