From c638442e78b953556e7dadd4c0c34cb0c719bbc8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 21 Apr 2011 19:35:17 +0300 Subject: Some work-in-progress in hp and mobs and a frightening amount of random fixes. --- src/utility.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utility.h') diff --git a/src/utility.h b/src/utility.h index 0b59ce6fd..c6bb3f879 100644 --- a/src/utility.h +++ b/src/utility.h @@ -215,8 +215,8 @@ inline void writeU16(std::ostream &os, u16 p) } inline u16 readU16(std::istream &is) { - char buf[12]; - is.read(buf, 12); + char buf[2]; + is.read(buf, 2); return readU16((u8*)buf); } @@ -228,8 +228,8 @@ inline void writeF1000(std::ostream &os, f32 p) } inline f32 readF1000(std::istream &is) { - char buf[12]; - is.read(buf, 12); + char buf[2]; + is.read(buf, 2); return readF1000((u8*)buf); } -- cgit v1.2.3