1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 10:21:09 +09:00

fixed Write/ReadAllFields bug

This commit is contained in:
lidgren
2010-10-16 06:05:33 +00:00
parent 4a7cffce02
commit baaa5926f8

View File

@@ -62,7 +62,7 @@ namespace Lidgren.Network
string n = mi.Name.Substring(4);
foreach (Type it in integralTypes)
{
if (it.Name == n)
if (it.Name == n && mi.ReturnType.Name == it.Name)
s_readMethods[it] = mi;
}
}