diff options
author | Neil Moore <neil@s-z.org> | 2012-08-01 16:09:16 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-08-01 17:08:37 -0400 |
commit | 1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch) | |
tree | bd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/l_dgnit.cc | |
parent | a0a9240421e89e77aac6011671931521d7e60f0a (diff) | |
download | crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip |
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/l_dgnit.cc')
-rw-r--r-- | crawl-ref/source/l_dgnit.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/l_dgnit.cc b/crawl-ref/source/l_dgnit.cc index 7318815b8d..8827ee7630 100644 --- a/crawl-ref/source/l_dgnit.cc +++ b/crawl-ref/source/l_dgnit.cc @@ -104,8 +104,10 @@ static int dgn_item_property_set(lua_State *ls) const std::string key = luaL_checkstring(ls, 2); const std::string type = luaL_checkstring(ls, 3); if (type.empty() || type.length() > 1) + { luaL_error(ls, "Expected type: [BbSifsC], got: '%s'", type.c_str()); + } switch (type[0]) { @@ -146,8 +148,10 @@ static int dgn_item_property(lua_State *ls) const std::string key = luaL_checkstring(ls, 2); const std::string type = luaL_checkstring(ls, 3); if (type.empty() || type.length() > 1) + { luaL_error(ls, "Expected type: [BbSifsC], got: '%s'", type.c_str()); + } if (!item->props.exists(key)) { |