Fix a (likely harmless) integer overflow in shmup.cpp.

shmup.cpp: In function ‘void hr::shmup::moveMonster(hr::shmup::monster*, int)’:
    shmup.cpp:1851:41: error: overflow in implicit constant conversion [-Werror=overflow]
         else killMonster(m, moNone, AF_CRUSH);
                                             ^
This commit is contained in:
Arthur O'Dwyer 2020-02-22 22:40:10 -05:00
parent 561a3ebade
commit 364c33b1d8
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ bool isMonster(monster *m) { return m->type != moPlayer && m->type != moBullet;
EX hookset<bool(shmup::monster*)> *hooks_kill;
void killMonster(monster* m, eMonster who_kills, int flags = 0) {
void killMonster(monster* m, eMonster who_kills, flagtype flags = 0) {
int tk = tkills();
if(callhandlers(false, hooks_kill, m)) return;
if(m->dead) return;