Skip to content

Commit

Permalink
fix dumb goto thing
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally committed Dec 30, 2023
1 parent fee8fe8 commit 1c2f753
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions desktop_version/src/FileSystemUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1024,16 +1024,20 @@ bool FILESYSTEM_loadBinaryBlob(binaryBlob* blob, const char* filename)
VVV_exit(1); /* Oh god we're out of memory, just bail */
}

int old_offset = offset;
int old_offset;
old_offset = offset;

offset += header->size;
if (from_memory)
{
int bytes_read = 0;
int bytes_read;
bytes_read = 0;

unsigned char* data = multiplayer::assets_data[filename].first;
unsigned char* data;
data = multiplayer::assets_data[filename].first;

for (unsigned int j = 0; j < header->size; j++)
unsigned int j;
for (j = 0; j < header->size; j++)
{
if (old_offset + j >= size)
{
Expand Down

0 comments on commit 1c2f753

Please sign in to comment.