hmm, test for a null pointer?

if(hpll_info != NULL)
    ConsolePrint(hppl_info->name);
else
    ConsolePrint("Null Pointer");

or something similar . :)

----- Original Message -----
From: "Nate Lovallo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 10:18 PM
Subject: [hlcoders] Crashing Me...why?


> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Heres the scoop
>
>  hud_player_info_t *hpll_info;
>  hpll_info = &g_PlayerInfoList[m_nPlayerIndex];
>  ConsolePrint(hpll_info->name);
>
> Being ran in
> int CStudioModelRenderer::StudioDrawPlayer( int flags, entity_state_t
*pplayer )
>
> StudioModelRenderer.cpp
>
> Compiles fine, crashes w/ no error straight to desktop.
>
> Thx
> Inbeastic
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to