Skip to content

Commit

Permalink
Fixed: Build failure (ambiguous conversion of de::Id)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 12, 2013
1 parent 2f9fb6d commit 40e2741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/resource/resourcesystem.cpp
Expand Up @@ -3649,7 +3649,7 @@ colorpaletteid_t ResourceSystem::defaultColorPalette() const

void ResourceSystem::setDefaultColorPalette(ColorPalette *newDefaultPalette)
{
d->defaultColorPalette = newDefaultPalette? newDefaultPalette->id() : 0;
d->defaultColorPalette = newDefaultPalette? newDefaultPalette->id().asUInt32() : 0;
}

#ifdef __CLIENT__
Expand Down
2 changes: 2 additions & 0 deletions doomsday/libdeng2/include/de/core/id.h
Expand Up @@ -81,6 +81,8 @@ class DENG2_PUBLIC Id : public ISerializable, public LogEntry::Arg::Base

ddouble asDouble() const;

inline duint32 asUInt32() const { return _id; }

dint64 asInt64() const;

// Implements ISerializable.
Expand Down

0 comments on commit 40e2741

Please sign in to comment.