From 5b9393d0e7db893e0a6823ae06c2e691862965b3 Mon Sep 17 00:00:00 2001
From: altalk23 <45172705+altalk23@users.noreply.github.com>
Date: Sun, 18 Feb 2024 19:14:58 +0300
Subject: [PATCH] good one

---
 loader/src/ui/nodes/ScrollLayer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loader/src/ui/nodes/ScrollLayer.cpp b/loader/src/ui/nodes/ScrollLayer.cpp
index fcef70e5..fea33d3e 100644
--- a/loader/src/ui/nodes/ScrollLayer.cpp
+++ b/loader/src/ui/nodes/ScrollLayer.cpp
@@ -30,7 +30,7 @@ void ScrollLayer::visit() {
             
         if (this->getParent()) {
             CCPoint const offset = this->isIgnoreAnchorPointForPosition() 
-                ? ccp(0, 0) : this->getContentSize() * -this->getAnchorPoint();
+                ? ccp(0, 0) : CCPoint(this->getContentSize() * -this->getAnchorPoint());
 
             auto const bottomLeft = this->convertToWorldSpace(ccp(0, 0) - offset);
             auto const topRight = this->convertToWorldSpace(this->getContentSize() - offset);