Replace spritenum check with ptr check in VM_ScriptInfo()

git-svn-id: https://svn.eduke32.com/eduke32@7005 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-07 05:20:33 +00:00
parent d5381e701f
commit 0757a6570b

View file

@ -116,7 +116,7 @@ void VM_ScriptInfo(intptr_t const *ptr, int range)
if (ptr == insptr)
{
if (vm.spriteNum)
if (vm.pUSprite)
initprintf("current actor: %d (%d)\n", vm.spriteNum, vm.pUSprite->picnum);
initprintf("g_errorLineNum: %d, g_tw: %d\n", g_errorLineNum, g_tw);