summaryrefslogtreecommitdiff
path: root/src/guichan/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/graphics.cpp')
-rw-r--r--src/guichan/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guichan/graphics.cpp b/src/guichan/graphics.cpp
index d09050a10..c57b5d5c0 100644
--- a/src/guichan/graphics.cpp
+++ b/src/guichan/graphics.cpp
@@ -57,7 +57,7 @@ namespace gcn
{
Graphics::Graphics() :
- mFont(NULL)
+ mFont(nullptr)
{
}
@@ -155,7 +155,7 @@ namespace gcn
void Graphics::drawText(const std::string& text, int x, int y,
Alignment alignment)
{
- if (mFont == NULL)
+ if (!mFont)
throw GCN_EXCEPTION("No font set.");
switch (alignment)