Skip to content

Commit 07ecf93

Browse files
committed
Fix skins in DL version (#323)
1 parent a8a0c5a commit 07ecf93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CFunctions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RakNet__GetIndexFromPlayerID_t CFunctions::pfn__RakNet__GetIndexFromPlayerID =
3030
void CFunctions::Initialize()
3131
{
3232
#ifdef SAMP_03DL
33-
pArtInfo = reinterpret_cast<CArtInfo*>(CAddress::VAR_ArtInfo);
33+
pArtInfo = *reinterpret_cast<CArtInfo**>(CAddress::VAR_ArtInfo);
3434
#endif
3535

3636
// Initialize function pointers
@@ -163,7 +163,7 @@ WORD CFunctions::GetMaxNPC()
163163
#ifdef SAMP_03DL
164164
int CFunctions::GetSkinBaseID(DWORD dwSkinId)
165165
{
166-
if (pArtInfo->artList.dwCapacity == 0) {
166+
if (!pArtInfo || pArtInfo->artList.dwCapacity == 0) {
167167
return -1;
168168
}
169169

0 commit comments

Comments
 (0)