mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 16:38:08 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -30,7 +30,7 @@ FileEntry *FileHeader::AddFile( const std::wstring &name, unsigned int length /*
|
||||
|
||||
wchar_t filename[64];
|
||||
memset( &filename, 0, sizeof( wchar_t ) * 64 );
|
||||
memcpy( &filename, name.c_str(), min( sizeof( wchar_t ) * 64, sizeof( wchar_t ) * name.length() ) );
|
||||
memcpy( &filename, name.c_str(), std::min( sizeof( wchar_t ) * 64, sizeof( wchar_t ) * name.length() ) );
|
||||
|
||||
// Would a map be more efficient? Our file tables probably won't be very big so better to avoid hashing all the time?
|
||||
// Does the file exist?
|
||||
|
||||
Reference in New Issue
Block a user