From 4a7984f04db66bc25fbf4bd5a11e68c7bbdebd99 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sun, 30 Nov 2014 18:32:45 -0500 Subject: [PATCH] Fix clang compile error --- zone/command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/command.cpp b/zone/command.cpp index c9bef2e12..b2914cf46 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -9996,7 +9996,8 @@ void command_object(Client *c, const Seperator *sep) // Couldn't copy the object. - if (results.ErrorMessage().c_str() != '\0') { + // got an error message + if (!results.Success()) { c->Message(0, "Database Error: %s", results.ErrorMessage().c_str()); return; }