I am making a RPG and when I entered battle and attacked something pop-ed up saying that "this program preformed and illegal operation". When I clicked "details" this showed up
How do I fix this? I can post the source code if ya want.GAME caused a divide error in module GAME.EXE at 0167:00401a40.
Registers:
EAX=00004823 CS=0167 EIP=00401a40 EFLGS=00010202
EBX=00000002 SS=016f ESP=0074fdb0 EBP=0074fdd8
ECX=00004823 DS=016f ESI=816c3a2c FS=6327
EDX=00000000 ES=016f EDI=00000000 GS=0000
Bytes at CS:EIP:
f7 3d 9c 80 41 00 89 15 94 80 41 00 e8 9b f8 00
Stack dump:
00540000 0074fdd4 0040ce4c 0040ce9e 00418144 206c3a2c 0074fdf8 004012b5 0041703c 00000029 0074fdf8 004012fd 00417000 00417004 0074fe00 ffffffff