Skip to content

Commit

Permalink
same #act replacement
Browse files Browse the repository at this point in the history
Для команды #action вернул старую логику, при которой задание действия с тем же шаблоном заменяет старое действие, а не создает новое
  • Loading branch information
Rrahh committed Oct 14, 2017
1 parent 325a9dd commit 2511e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ttcoreex/Action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void action_command(wchar_t *arg)
while (ind != ActionList.end() ) {
// CActionPtr pac1 = *ind;
ACTION* pac1 = *ind;
if ( !pac1->m_bDeleted && !wcscmp(left, pac1->m_strLeft.c_str()) && !wcscmp(right, pac1->m_strRight.c_str())) {
if ( !pac1->m_bDeleted && !wcscmp(left, pac1->m_strLeft.c_str())/* && !wcscmp(right, pac1->m_strRight.c_str())*/) {
bNew = FALSE;
break;
}
Expand Down

0 comments on commit 2511e92

Please sign in to comment.