also fixes more runtimes that mloc gave me
This commit is contained in:
Boop
2014-06-17 20:35:48 +01:00
parent 8cc14a2ac3
commit a903e400dd
7 changed files with 22 additions and 47 deletions

View File

@@ -114,7 +114,7 @@
//play the recieving admin the adminhelp sound (if they have them enabled)
//non-admins shouldn't be able to disable this
if(C.prefs.toggles & SOUND_ADMINHELP)
if(C.prefs && C.prefs.toggles & SOUND_ADMINHELP)
C << 'sound/effects/adminhelp.ogg'
log_admin("PM: [key_name(src)]->[key_name(C)]: [msg]")