added a missing variable to prevent crash

my mod crashes the game if this isn't here