We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8a0c5a commit 07ecf93Copy full SHA for 07ecf93
src/CFunctions.cpp
@@ -30,7 +30,7 @@ RakNet__GetIndexFromPlayerID_t CFunctions::pfn__RakNet__GetIndexFromPlayerID =
30
void CFunctions::Initialize()
31
{
32
#ifdef SAMP_03DL
33
- pArtInfo = reinterpret_cast<CArtInfo*>(CAddress::VAR_ArtInfo);
+ pArtInfo = *reinterpret_cast<CArtInfo**>(CAddress::VAR_ArtInfo);
34
#endif
35
36
// Initialize function pointers
@@ -163,7 +163,7 @@ WORD CFunctions::GetMaxNPC()
163
164
int CFunctions::GetSkinBaseID(DWORD dwSkinId)
165
166
- if (pArtInfo->artList.dwCapacity == 0) {
+ if (!pArtInfo || pArtInfo->artList.dwCapacity == 0) {
167
return -1;
168
}
169
0 commit comments