I already debugged my project, and that was what I came back with. The message I got was the one I attached before. When I click 'Show Disassembly', I get shown some weird code -
GetMeshCount:
005254CB push esi
005254CC mov esi,dword ptr [esp+8]
005254D0 test esi,esi
005254D2 jne GetMeshCount+0Dh (5254D8h)
005254D4 xor al,al
005254D6 pop esi
005254D7 ret
005254D8 push edi
005254D9 mov edi,dword ptr [esp+10h]
005254DD test edi,edi
005254DF jne GetMeshCount+1Ah (5254E5h)
005254E1 xor al,al
005254E3 jmp GetMeshCount+42h (52550Dh)
005254E5 cmp dword ptr [esi+2F8h],0
005254EC je GetMeshCount+25h (5254F0h)
005254EE inc dword ptr [edi]
005254F0 push edi
005254F1 push dword ptr [esi+108h]
005254F7 call GetMeshCount (4B49F4h)
005254FC push edi
005254FD push dword ptr [esi+10Ch]
00525503 call GetMeshCount (4B49F4h)
00525508 add esp,10h
0052550B mov al,1
The arrow is pointing at "005254E5 cmp....dword ptr [esi+2F8h],0"
I have no idea what this means tbh, and I can't find anything on google that explains it to me....