summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-10-29 16:18:06 +0100
committerRay <[email protected]>2018-10-29 16:18:06 +0100
commit298203a41a53a8b8eb78c51b2d4415b078efa474 (patch)
tree545c8adcc880f4144ee8fe3f73d0c121f6e2cc68 /src/core.c
parent78064dee09f5dea69d4e5ffea9a1ba695bbd196c (diff)
downloadraylib-298203a41a53a8b8eb78c51b2d4415b078efa474.tar.gz
raylib-298203a41a53a8b8eb78c51b2d4415b078efa474.zip
ADDED: Some functions...
text: IsEqualText() -WIP- audio: SaveWAV() audio: ExportWaveAsCode() textures: ExportImageAsCode()
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index af601e1d..2038e274 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1766,11 +1766,11 @@ void StorageSaveValue(int position, int value)
int fileSize = ftell(storageFile); // Size in bytes
fseek(storageFile, 0, SEEK_SET);
- if (fileSize < (position*4)) TraceLog(LOG_WARNING, "Storage position could not be found");
+ if (fileSize < (position*sizeof(int))) TraceLog(LOG_WARNING, "Storage position could not be found");
else
{
- fseek(storageFile, (position*4), SEEK_SET);
- fwrite(&value, 1, 4, storageFile);
+ fseek(storageFile, (position*sizeof(int)), SEEK_SET);
+ fwrite(&value, 1, sizeof(int), storageFile);
}
fclose(storageFile);