diff options
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/deaddb.cpp | 2 | ||||
-rw-r--r-- | src/resources/db/itemdb.cpp | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/resources/db/deaddb.cpp b/src/resources/db/deaddb.cpp index e66e87e6a..7ee041cf2 100644 --- a/src/resources/db/deaddb.cpp +++ b/src/resources/db/deaddb.cpp @@ -89,7 +89,7 @@ void DeadDB::unload() std::string DeadDB::getRandomString() { - const int sz = mMessages.size(); + const size_t sz = mMessages.size(); if (!sz) return std::string(); return translator->getStr(mMessages[rand() % sz]); diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 09a5ce08f..939568f29 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -67,6 +67,24 @@ namespace { struct FieldType { +/* + FieldType() : + name(nullptr), + description(nullptr), + sign(false) + { } +*/ + + FieldType(const char *const name0, + const char *const description0, + const bool sign0) : + name(name0), + description(description0), + sign(sign0) + { } + + A_DELETE_COPY(FieldType) + const char *name; const char *description; const bool sign; |