Fix most compiler warnings and fix for OSX.

This commit is contained in:
Zach Langley 2014-11-07 20:13:36 -08:00
parent a61c2c6c60
commit eadcd45b6e
6 changed files with 15 additions and 8 deletions

View file

@ -971,7 +971,7 @@ void mag_rooms(int level, struct char_data *ch, int spellnum)
room_rnum rnum;
int duration;
bool failure = FALSE;
event_id IdNum = -1;
event_id IdNum = eNULL;
const char *msg = NULL;
const char *room = NULL;
@ -995,7 +995,7 @@ void mag_rooms(int level, struct char_data *ch, int spellnum)
}
if (failure || (event_id)IdNum == -1) {
if (failure || IdNum == eNULL) {
send_to_char(ch, "You failed!\r\n");
return;
}