diff --git a/uppsrc/Core/Value.h b/uppsrc/Core/Value.h index 7f1c591b1..a15960178 100644 --- a/uppsrc/Core/Value.h +++ b/uppsrc/Core/Value.h @@ -53,8 +53,8 @@ template<> inline dword ValueTypeNo(const Value*) { return VALUE_V; } template class ValueType : public B { public: - static dword ValueTypeNo(const T*) { return type == UNKNOWN_V ? StaticTypeNo() + 0x8000000 : type; } - friend dword ValueTypeNo(const T*) { return T::ValueTypeNo(NULL); } + static dword ValueTypeNo() { return type == UNKNOWN_V ? StaticTypeNo() + 0x8000000 : type; } + friend dword ValueTypeNo(const T*) { return T::ValueTypeNo(); } bool IsNullInstance() const { return false; } void Serialize(Stream& s) { NEVER(); }