test: explicit checks

This commit is contained in:
Michele Caini
2024-10-08 17:07:35 +02:00
parent 2cd0ef323d
commit b8977df86f

View File

@@ -41,7 +41,7 @@ struct fake_process: entt::process<fake_process<Delta>, Delta> {
}
void update(typename entt::process<fake_process<Delta>, Delta>::delta_type, void *data) {
if(data) {
if(data != nullptr) {
(*static_cast<int *>(data))++;
}