Fixed oob crashes on 64 bit

This commit is contained in:
Kevin Alexis Contreras
2022-05-31 00:29:14 -05:00
parent fa21734a98
commit 22a305028f
3 changed files with 7 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ void Font_LoadChar(Font* font, u8 character, u16 codePointIndex) {
* The different icons are given in the MessageBoxIcon enum.
*/
void Font_LoadMessageBoxIcon(Font* font, u16 icon) {
memcpy(font->iconBuf, msgStaticTbl[4 + icon], FONT_CHAR_TEX_SIZE);
memcpy(font->iconBuf, ResourceMgr_LoadTexByName(msgStaticTbl[4 + icon]), FONT_CHAR_TEX_SIZE);
}
/**