Adding an array initialization for a newgfx variable as a potential crash fix

This commit is contained in:
zsknight
2001-04-24 07:12:02 +00:00
parent fa79f56eab
commit 59c065de8f

View File

@@ -129,7 +129,16 @@ NEWSYM SfxAC, db 0
blah times 450 db 0 blah times 450 db 0
SECTION .text SECTION .text
EXTSYM cpalval
NEWSYM init NEWSYM init
; prevents a crash if cpalval gets accessed before initializing
mov eax,cpalval
mov ecx,256
.looppal
mov dword[eax],cpalval
add eax,4
loop .looppal
; Initialize snow stuff ; Initialize snow stuff
mov ecx,400 mov ecx,400
xor edx,edx xor edx,edx