summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events/SetPortValueEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-28 22:38:19 +0000
committerDavid Robillard <d@drobilla.net>2008-07-28 22:38:19 +0000
commit80cdf6829d69f8878b406f9b9e6ca844f4ba7cc4 (patch)
treeaeb9df0af73e359933cf4ce0e17c8a73bbbf45d0 /src/libs/engine/events/SetPortValueEvent.cpp
parent785216d1e99d70e90de7fdc54eb2d7ac2eb396de (diff)
downloadingen-80cdf6829d69f8878b406f9b9e6ca844f4ba7cc4.tar.gz
ingen-80cdf6829d69f8878b406f9b9e6ca844f4ba7cc4.tar.bz2
ingen-80cdf6829d69f8878b406f9b9e6ca844f4ba7cc4.zip
Fix crash on patch loading.
git-svn-id: http://svn.drobilla.net/lad/ingen@1297 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/SetPortValueEvent.cpp')
-rw-r--r--src/libs/engine/events/SetPortValueEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/events/SetPortValueEvent.cpp b/src/libs/engine/events/SetPortValueEvent.cpp
index 29f3f6c7..cf4ce6fd 100644
--- a/src/libs/engine/events/SetPortValueEvent.cpp
+++ b/src/libs/engine/events/SetPortValueEvent.cpp
@@ -53,7 +53,7 @@ SetPortValueEvent::SetPortValueEvent(Engine& engine,
, _port(NULL)
, _error(NO_ERROR)
{
- if (_queued)
+ if (!_queued)
pre_process();
memcpy(_data, data, data_size);
@@ -80,7 +80,7 @@ SetPortValueEvent::SetPortValueEvent(Engine& engine,
, _port(NULL)
, _error(NO_ERROR)
{
- if (_queued)
+ if (!_queued)
pre_process();
memcpy(_data, data, data_size);