summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-09-23 22:40:01 +0200
committerFlorian Jung <flo@windfisch.org>2013-09-23 22:40:01 +0200
commitb9cbb99adfd5b6959ac4f9667f29b0bf48d4a9a1 (patch)
treed37b01ac6570db7ff4b1640d28fd9576f5d33438
parent7af8e012c50be47c903871286a49ae18723941ee (diff)
Pos operator+ fix
-rw-r--r--muse2/muse/pos.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}