Prechádzať zdrojové kódy

Mark Id::encode() ad const

Daniele Bartolini 12 rokov pred
rodič
commit
cf9e3da9b3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      engine/core/containers/IdTable.h

+ 1 - 1
engine/core/containers/IdTable.h

@@ -46,7 +46,7 @@ struct Id
 		index = id_and_index & 0xFFFF;
 	}
 
-	uint32_t encode()
+	uint32_t encode() const
 	{
 		return (uint32_t(id) << 16) | uint32_t(index);
 	}