sizeOf data type, not pointer value

This commit is contained in:
PokeCodec
2020-08-23 18:50:57 -04:00
parent d7e31f5a85
commit 6aee7d38f3
10 changed files with 27 additions and 27 deletions

View File

@@ -2121,7 +2121,7 @@ static void Task_ReceiveChatMessage(u8 taskId)
static bool8 TryAllocDisplay(void)
{
sDisplay = Alloc(sizeof(*sDisplay));
sDisplay = Alloc(sizeof(struct UnionRoomChatDisplay));
if (sDisplay && TryAllocSprites())
{
ResetBgsAndClearDma3BusyFlags(0);