diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-02 12:14:51 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-02 12:14:51 +0100 |
commit | 41400167398f1ab5f5e8ee67a76358189085f17f (patch) | |
tree | 141216ce090dac9a01288503eaaf0caffdbb013b /main.c | |
parent | f569dc0ac9849e8c6b62d73f27afbd243ea31af0 (diff) | |
download | tzr-41400167398f1ab5f5e8ee67a76358189085f17f.tar.gz |
LoadResourceTyped: prevent obvious duplicate
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,8 @@ int main(int argc, char **argv) /* Load assets. */ const TZR_Uint id0 = TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp"); const TZR_Uint id1 = TZR_LoadResourceTyped(TZR_RES_RAW, "main.c"); + TZR_LoadResourceTyped(TZR_RES_IMAGE, "res.bmp"); + TZR_LoadResourceTyped(TZR_RES_RAW, "main.c"); const TZR_Uint id2 = TZR_LoadResource("smile.bmp"); if (id0 != 1 || id1 != 2 || id2 != 3) return TZR_Quit(), 1; |