From 72ee9102b42b3a1bce6f6975550046e84c2c8e3c Mon Sep 17 00:00:00 2001 From: flowtron Date: Sun, 4 May 2008 12:06:18 +0000 Subject: [PATCH] avoid warnings by correctly ordering initialization git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1860 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/entity.h b/source/src/entity.h index e50ffa1c..ee041449 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -18,8 +18,8 @@ enum // static entity types struct persistent_entity // map entity { short x, y, z; // cube aligned position - short attr1; uchar type; // type is one of the above + short attr1; uchar attr2, attr3, attr4; persistent_entity(short x, short y, short z, uchar type, short attr1, uchar attr2, uchar attr3, uchar attr4) : x(x), y(y), z(z), type(type), attr1(attr1), attr2(attr2), attr3(attr3), attr4(attr4) {}; persistent_entity(){};