pump: fix connecting already defined drain and source pipes

install-platforms
Maikel de Vries 2017-07-04 15:19:31 +02:00
parent c20698060c
commit b2a966150c
1 changed files with 2 additions and 2 deletions

View File

@ -189,12 +189,12 @@ public func QueryConnectPipe(object pipe)
pipe->Report("$MsgHasPipes$");
return true;
}
else if (pipe->IsSourcePipe())
else if (pipe->IsSourcePipe() && GetSourcePipe())
{
pipe->Report("$MsgSourcePipeProhibited$");
return true;
}
else if (pipe->IsDrainPipe())
else if (pipe->IsDrainPipe() && GetDrainPipe())
{
pipe->Report("$MsgDrainPipeProhibited$");
return true;