fixed CxEncryption deserialization.

This commit is contained in:
morkt 2015-09-18 08:47:28 +04:00
parent fe8f0dc84e
commit 26d7251705

View File

@ -26,6 +26,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace GameRes.Formats.KiriKiri
{
@ -64,6 +65,12 @@ namespace GameRes.Formats.KiriKiri
[NonSerialized]
CxProgram[] m_program_list = new CxProgram[0x80];
[OnDeserialized()]
void PostDeserialization (StreamingContext context)
{
m_program_list = new CxProgram[0x80];
}
public CxEncryption (CxScheme scheme)
{
m_mask = scheme.Mask;