shithub: cstory

Download patch

ref: f908e2a064d8819dbb3a8abdfa78286ad7b2c9d0
parent: 2963977cf915952f66c14860baba41332bee1880
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 6 11:26:57 EDT 2020

Style tweaks

--- a/src/Resource.cpp
+++ b/src/Resource.cpp
@@ -343,11 +343,11 @@
 
 const unsigned char* FindResource(const char *name, const char *type, size_t *size)
 {
-	for (unsigned int i = 0; i < sizeof(resources) / sizeof(resources[0]); ++i)
+	for (size_t i = 0; i < sizeof(resources) / sizeof(resources[0]); ++i)
 	{
 		if (!strcmp(name, resources[i].name) && !strcmp(type, resources[i].type))
 		{
-			if (size)
+			if (size != NULL)
 				*size = resources[i].size;
 
 			return resources[i].data;