Browse files

When initialising a message from a string and there is an error, use …

…the given timestamp to create the default bang message.
  • Loading branch information...
1 parent 15f9de4 commit d7a9a9d6f939f66338643912dc3f2d69f9bfd6b5 @mhroth committed Mar 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PdMessage.cpp
View
2 src/PdMessage.cpp
@@ -34,7 +34,7 @@ void PdMessage::initWithString(double ts, unsigned int maxElements, char *initSt
char *token = strtok(initString, " ;");
if (token == NULL || strlen(initString) == 0) {
- initWithTimestampAndBang(0.0); // just in case, there is always at least one element in a message
+ initWithTimestampAndBang(ts); // just in case, there is always at least one element in a message
} else {
unsigned int i = 0;
do {

0 comments on commit d7a9a9d

Please sign in to comment.