summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2009-10-08 19:06:11 +0000
committerleo2009-10-08 19:06:11 +0000
commitaf3ef9797d3fc5ec8d7a7cb55ce63720b8302dfa (patch)
treef0408629525e4effc83bf37fca3bb0a287566d95
parent9a0e93203b563299728cc41e6c455792bfe4c5af (diff)
Fixed crash drawing some pieces on 64-bit systems.
git-svn-id: http://svn.leocad.org/branches/leocad-0.75@837 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rw-r--r--common/pieceinf.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index eee37e4..f18cf74 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -1701,7 +1701,7 @@ void PieceInfo::RenderOnce(int nColor)
// Called by the piece preview and from RenderOnce()
void PieceInfo::RenderPiece(int nColor)
{
- unsigned short sh, curcolor;
+ lcuint16 sh, curcolor;
DRAWGROUP* pGroup;
for (sh = 0; sh < m_nTextureCount; sh++)
@@ -1747,9 +1747,9 @@ void PieceInfo::RenderPiece(int nColor)
{
if (m_nFlags & LC_PIECE_LONGDATA)
{
- unsigned long* info, colors;
+ lcuint32* info, colors;
- info = (unsigned long*)pGroup->drawinfo;
+ info = (lcuint32*)pGroup->drawinfo;
colors = *info;
info++;
@@ -1788,9 +1788,9 @@ void PieceInfo::RenderPiece(int nColor)
}
else
{
- unsigned short* info, colors;
+ lcuint16* info, colors;
- info = (unsigned short*)pGroup->drawinfo;
+ info = (lcuint16*)pGroup->drawinfo;
colors = *info;
info++;