Replace Malloc With Pools
This commit introduces an object pool and replaces instances of malloc with pools where sensible.
This commit is contained in:
+1
-1
@@ -586,7 +586,7 @@ void sort_cards()
|
||||
if (hand[i] != NULL)
|
||||
{
|
||||
// card_object_get_sprite() will not work here since we need the address
|
||||
sprite_destroy(&(hand[i]->sprite_object->sprite));
|
||||
sprite_destroy(&hand[i]->sprite_object->sprite);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user