Skip to content

Commit c3f8a7c

Browse files
committed
fix: reset from coop credits
1 parent fdb44c4 commit c3f8a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Features/Session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void Session::Ended() {
149149
auto info = entityList->GetEntityInfoByIndex(index);
150150
if (info->m_pEntity == nullptr) continue;
151151
auto entityClass = server->GetEntityClassName(info->m_pEntity);
152-
if (!entityClass || std::strcmp(entityClass, "point_viewcontrol") != 0) continue;
152+
if (!entityClass || !Utils::StartsWith(entityClass, "point_viewcontrol")) continue; // point_view
153153
if (server->AcceptInput) server->AcceptInput(info->m_pEntity, "Disable", 0, 0, {0}, 0);
154154
}
155155
}

0 commit comments

Comments
 (0)