Fixed code segment that hadn't been ported properly into Ragnarok