From 713bcd50a331d2e39c2c48e9701272ed8866b8ad Mon Sep 17 00:00:00 2001 From: skypjack Date: Sat, 15 Nov 2025 18:55:17 +0100 Subject: [PATCH] test: explicit nullptr check --- test/example/entity_copy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/example/entity_copy.cpp b/test/example/entity_copy.cpp index 51351869e..517595f58 100644 --- a/test/example/entity_copy.cpp +++ b/test/example/entity_copy.cpp @@ -104,7 +104,7 @@ TYPED_TEST(EntityCopy, CrossRegistry) { if(storage.contains(entity)) { auto *other = dst.storage(id); - if(!other) { + if(other == nullptr) { using namespace entt::literals; entt::resolve(storage.info()).invoke("storage"_hs, {}, entt::forward_as_meta(dst), id); other = dst.storage(id);