Skip to content

Commit

Permalink
Fix skins in DL version (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Aug 23, 2024
1 parent a8a0c5a commit 07ecf93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RakNet__GetIndexFromPlayerID_t CFunctions::pfn__RakNet__GetIndexFromPlayerID =
void CFunctions::Initialize()
{
#ifdef SAMP_03DL
pArtInfo = reinterpret_cast<CArtInfo*>(CAddress::VAR_ArtInfo);
pArtInfo = *reinterpret_cast<CArtInfo**>(CAddress::VAR_ArtInfo);
#endif

// Initialize function pointers
Expand Down Expand Up @@ -163,7 +163,7 @@ WORD CFunctions::GetMaxNPC()
#ifdef SAMP_03DL
int CFunctions::GetSkinBaseID(DWORD dwSkinId)
{
if (pArtInfo->artList.dwCapacity == 0) {
if (!pArtInfo || pArtInfo->artList.dwCapacity == 0) {
return -1;
}

Expand Down

0 comments on commit 07ecf93

Please sign in to comment.