Document undefined sprite template behavior

This commit is contained in:
Sierraffinity
2020-04-25 18:25:55 -07:00
parent b2d8c6793d
commit 072a98ca9a
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -182,6 +182,10 @@ struct SpriteTemplate
SpriteCallback callback;
};
// UB: template pointer is often used to point to temporary storage,
// then later dereferenced after being freed. Usually this won't
// be visible in-game, but this is (part of) what causes the item
// icon palette to flicker when changing items in the bag.
struct Sprite
{
/*0x00*/ struct OamData oam;