summaryrefslogtreecommitdiff
path: root/library/modules
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-29 12:47:41 +0400
committerAlexander Gavrilov2012-09-29 12:47:41 +0400
commiteaddd0e646c57a8e72a3dd3c0d95871ec7b25b2e (patch)
tree2b1acd5efca93097f6d9a35eef6a077b2405fe44 /library/modules
parent38f2ae399a443ffa6f215c5d3c8ff2329de333ff (diff)
downloaddfhack-eaddd0e646c57a8e72a3dd3c0d95871ec7b25b2e.tar.gz
dfhack-eaddd0e646c57a8e72a3dd3c0d95871ec7b25b2e.tar.bz2
dfhack-eaddd0e646c57a8e72a3dd3c0d95871ec7b25b2e.tar.xz
Try shutting up a few random warnings.
Diffstat (limited to 'library/modules')
-rw-r--r--library/modules/Maps.cpp2
-rw-r--r--library/modules/Screen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/modules/Maps.cpp b/library/modules/Maps.cpp
index f1f40f19..608068b8 100644
--- a/library/modules/Maps.cpp
+++ b/library/modules/Maps.cpp
@@ -585,7 +585,7 @@ bool MapExtras::Block::Allocate()
if (!block)
return false;
- delete item_counts;
+ delete[] item_counts;
delete tiles;
delete basemats;
init();
diff --git a/library/modules/Screen.cpp b/library/modules/Screen.cpp
index 8057d17a..e9d19c93 100644
--- a/library/modules/Screen.cpp
+++ b/library/modules/Screen.cpp
@@ -195,7 +195,7 @@ bool Screen::drawBorder(const std::string &title)
if (!gps) return false;
int dimx = gps->dimx, dimy = gps->dimy;
- Pen border(0xDB, 8);
+ Pen border('\xDB', 8);
Pen text(0, 0, 7);
Pen signature(0, 0, 8);