From 3d894efc5e6e1d6d199790a3ecb5d525ef27929c Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Mon, 23 Apr 2018 01:44:55 +0300 Subject: [PATCH] Fix engine sockets. --- src/model/model.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model/model.cpp b/src/model/model.cpp index 378428a..09eb9b0 100644 --- a/src/model/model.cpp +++ b/src/model/model.cpp @@ -30,6 +30,8 @@ //#include //#include +#include + #include #include @@ -471,7 +473,7 @@ void block::loadPayload(const buffer &data) bool block::isEngineFx() const { - return h.type == BlockType::HelperObject && h.name.find("FIRE") == 0; + return h.type == BlockType::HelperObject && h.name.find(boost::to_lower_copy(std::string("FIRE"))) == 0; } bool block::canPrint() const