core: avoid uninitialized overriddenBy of raw shape data

ref #64
This commit is contained in:
Vaxry 2024-09-30 18:10:29 +01:00
parent b98726e431
commit 66648429bd

View file

@ -388,6 +388,7 @@ SCursorRawShapeDataC* CHyprcursorManager::getRawShapeDataC(const char* shape_) {
SCursorRawShapeDataC* data = new SCursorRawShapeDataC; SCursorRawShapeDataC* data = new SCursorRawShapeDataC;
std::vector<SLoadedCursorImage*> resultingImages; std::vector<SLoadedCursorImage*> resultingImages;
data->overridenBy = nullptr;
for (auto& shape : impl->theme.shapes) { for (auto& shape : impl->theme.shapes) {
// if it's overridden just return the override // if it's overridden just return the override