Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
oid 64bit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joschuka committed May 11, 2022
1 parent c36f903 commit 5d2a020
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file removed ProjectG1M.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/Public/G1M/G1MS.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct G1MS
G1MSHeader<bBigEndian> header = reinterpret_cast<G1MSHeader<bBigEndian>*>(buffer + offset);
skeletonLayer = header.layer;

if (sectionHeader.chunkVersion > 0x30303332) //No global indices before it seems, need to process differently
if (sectionHeader.chunkVersion >= 0x30303332) //No global indices before it seems, need to process differently
{
//Global and local indices map
offset += sizeof(G1MSHeader<bBigEndian>);
Expand Down
4 changes: 2 additions & 2 deletions Source/Public/Oid.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ struct OID
std::string s = std::string(reinterpret_cast<const char*>(buffer), bufferLen);

std::string delimiter = "\r\n";
uint32_t pos = 0;
int pos = 0;
std::string token;
while ((pos = s.find(delimiter)) != std::string::npos) {
while ((pos = s.find(delimiter)) != -1) {
token = s.substr(0, pos);
if(token.rfind(";", 0) && token.size())
nameList.push_back(token);
Expand Down

0 comments on commit 5d2a020

Please sign in to comment.