Removed LC_POINTER_TO_INT

This commit is contained in:
Leonardo Zide 2017-12-02 12:33:28 -08:00
parent 636e013455
commit d6ba0262af
2 changed files with 2 additions and 4 deletions

View file

@ -21,8 +21,6 @@
// Old defines and declarations.
#define LC_MAXPATH 1024
#define LC_POINTER_TO_INT(p) ((qint32) (quintptr) (p))
#ifdef Q_OS_WIN
char* strcasestr(const char *s, const char *find);
#else

View file

@ -824,7 +824,7 @@ bool lcModel::LoadBinary(lcFile* file)
{
lcGroup* Group = mGroups[GroupIdx];
i = LC_POINTER_TO_INT(Group->mGroup);
i = (qint32)(quintptr)(Group->mGroup);
Group->mGroup = nullptr;
if (i > 0xFFFF || i == -1)
@ -837,7 +837,7 @@ bool lcModel::LoadBinary(lcFile* file)
{
lcPiece* Piece = mPieces[PieceIdx];
i = LC_POINTER_TO_INT(Piece->GetGroup());
i = (qint32)(quintptr)(Piece->GetGroup());
Piece->SetGroup(nullptr);
if (i > 0xFFFF || i == -1)