Skip to content

Mistake in Read<T> and ReadRelative<T>. Patch to fix attached. #11

@GoogleCodeExporter

Description

@GoogleCodeExporter
Mistake in Read<T> and ReadRelative<T>. Patch to fix attached.

Index: Common/Objects/ObjectManager.cs
===================================================================
--- Common/Objects/ObjectManager.cs (revision 58)
+++ Common/Objects/ObjectManager.cs (working copy)
@@ -236,7 +236,7 @@
                     ret = Memory.ReadUInt64(MakeAbsolute(address));
                     break;
                 case TypeCode.Single:
-                    ret = Memory.ReadShort(MakeAbsolute(address));
+                    ret = Memory.ReadFloat(MakeAbsolute(address));
                     break;
                 case TypeCode.Byte:
                     ret = Memory.ReadByte(MakeAbsolute(address));
@@ -288,7 +288,7 @@
                     ret = Memory.ReadUInt64(address);
                     break;
                 case TypeCode.Single:
-                    ret = Memory.ReadShort(address);
+                    ret = Memory.ReadFloat(address);
                     break;
                 case TypeCode.Byte:
                     ret = Memory.ReadByte(address);



Original issue reported on code.google.com by smremde on 29 Dec 2010 at 10:45

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions