fix signed unsigned mismatch warning

This commit is contained in:
HJfod 2023-02-19 20:06:58 +02:00
parent 511938fe1c
commit f7bfa21e51

View file

@ -1120,7 +1120,7 @@ class EditorPauseLayer : CCBlockLayer, FLAlertLayerProtocol {
if (!EditorUI::get()) return nullptr;
auto editor = LevelEditorLayer::get();
for (auto i = 0; i < editor->getChildrenCount(); ++i) {
for (auto i = 0u; i < editor->getChildrenCount(); ++i) {
if (auto layer = cast::safe_cast<EditorPauseLayer*>(editor->getChildren()->objectAtIndex(i))) {
return layer;
}