aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-02 12:14:51 +0100
committerkdx <kikoodx@paranoici.org>2023-03-02 12:14:51 +0100
commit41400167398f1ab5f5e8ee67a76358189085f17f (patch)
tree141216ce090dac9a01288503eaaf0caffdbb013b /main.c
parentf569dc0ac9849e8c6b62d73f27afbd243ea31af0 (diff)
downloadtzr-41400167398f1ab5f5e8ee67a76358189085f17f.tar.gz
LoadResourceTyped: prevent obvious duplicate
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4d06563..bf5ff59 100644
--- a/main.c
+++ b/main.c
@@ -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;