forked from akanyan/mu3-mods
fix(UnlockMemory): crashing with broken data
You've REALLY fucked your data up if I can't even reproduce that.
This commit is contained in:
@ -22,9 +22,10 @@ class patch_PacketGetGameEvent: Packet {
|
||||
idPeriod.period.endDate = endDate;
|
||||
}
|
||||
} else {
|
||||
idPeriod = new();
|
||||
idPeriod.id = eventData.id;
|
||||
idPeriod.period = new Period(DateTime.MinValue.Date, endDate);
|
||||
idPeriod = new() {
|
||||
id = eventData.id,
|
||||
period = new Period(DateTime.MinValue.Date, endDate)
|
||||
};
|
||||
_gameEvent.list.Add(idPeriod);
|
||||
_gameEvent.lastUpdate = CustomDateTime.Now;
|
||||
}
|
||||
|
Reference in New Issue
Block a user