mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
fix build after rebase
This commit is contained in:
parent
27318a3f17
commit
9d6acf007a
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ REGISTER_ENTITY_TYPE(Zone)
|
|||
REGISTER_ENTITY_TYPE(Material)
|
||||
|
||||
bool EntityTypes::typeIsValid(EntityType type) {
|
||||
return type > EntityType::Unknown && type <= EntityType::LAST;
|
||||
return type > EntityType::Unknown && type <= EntityType::NUM_TYPES;
|
||||
}
|
||||
|
||||
const QString& EntityTypes::getEntityTypeName(EntityType entityType) {
|
||||
|
@ -144,7 +144,7 @@ EntityItemPointer EntityTypes::constructEntityItem(const unsigned char* data, in
|
|||
QUuid id;
|
||||
EntityTypes::EntityType type = EntityTypes::Unknown;
|
||||
extractEntityTypeAndID(data, bytesToRead, type, id);
|
||||
if (type > EntityTypes::Unknown && type <= EntityTypes::LAST) {
|
||||
if (type > EntityTypes::Unknown && type <= EntityTypes::NUM_TYPES) {
|
||||
EntityItemID tempEntityID(id);
|
||||
EntityItemProperties tempProperties;
|
||||
return constructEntityItem(type, tempEntityID, tempProperties);
|
||||
|
|
Loading…
Reference in a new issue