mirror of
https://github.com/zeldaret/tmc
synced 2026-06-10 20:59:02 -04:00
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
This commit is contained in:
+2
-2
@@ -339,7 +339,7 @@ void DeleteEntityAny(Entity* ent) {
|
||||
}
|
||||
|
||||
void DeleteEntity(Entity* ent) {
|
||||
if (ent->next) {
|
||||
if (ent->next != NULL) {
|
||||
UnloadGFXSlots(ent);
|
||||
UnloadOBJPalette(ent);
|
||||
UnloadOBJPalette2(ent);
|
||||
@@ -418,7 +418,7 @@ Manager* GetEmptyManager(void) {
|
||||
|
||||
void DeleteManager(void* ent) {
|
||||
Manager* manager = (Manager*)ent;
|
||||
if (!manager->next)
|
||||
if (manager->next == NULL)
|
||||
return;
|
||||
|
||||
ReleaseTransitionManager(manager);
|
||||
|
||||
Reference in New Issue
Block a user