From 398068e3de4d5cd353eaf3348a2d7d58a8257473 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 30 Oct 2014 20:59:07 +0100 Subject: Fixed gcc build --- src/server/game/Entities/Object/ObjectGuid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Object/ObjectGuid.cpp b/src/server/game/Entities/Object/ObjectGuid.cpp index ebcf110b5f4..b51493bcd23 100644 --- a/src/server/game/Entities/Object/ObjectGuid.cpp +++ b/src/server/game/Entities/Object/ObjectGuid.cpp @@ -232,13 +232,13 @@ ObjectGuid const ObjectGuid::TradeItem = ObjectGuid::Create(uint template ObjectGuid ObjectGuid::Create(LowType counter) { - static_assert(false, "Invalid guid construction method for this guid type."); + static_assert(type == HighGuid::Count, "This guid type cannot be constructed using Create(LowType counter)."); } template ObjectGuid ObjectGuid::Create(uint16 mapId, uint32 entry, LowType counter) { - static_assert(false, "Invalid guid construction method for this guid type."); + static_assert(type == HighGuid::Count, "This guid type cannot be constructed using Create(uint16 mapId, uint32 entry, LowType counter)."); } template ObjectGuid::LowType ObjectGuidGenerator::Generate(); -- cgit v1.2.3