summaryrefslogtreecommitdiffstats
path: root/dab
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-05-14 06:38:04 +0000
committerchristos <christos@NetBSD.org>2006-05-14 06:38:04 +0000
commit0000171fb57845376af7a496449291f4d101e635 (patch)
tree3e6c163a430cd568ac9cde781e4f803aa07beb53 /dab
parent641cee441f5da1d55d0ceb42c4f6a8486cef2f21 (diff)
downloadbsdgames-darwin-0000171fb57845376af7a496449291f4d101e635.tar.gz
bsdgames-darwin-0000171fb57845376af7a496449291f4d101e635.tar.zst
bsdgames-darwin-0000171fb57845376af7a496449291f4d101e635.zip
Add a virtual destructor to avoid "future ABI issues". I love c++.
Diffstat (limited to 'dab')
-rw-r--r--dab/human.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dab/human.h b/dab/human.h
index b245ee1a..abfe3dee 100644
--- a/dab/human.h
+++ b/dab/human.h
@@ -1,4 +1,4 @@
-/* $NetBSD: human.h,v 1.1.1.1 2003/12/26 17:57:03 christos Exp $ */
+/* $NetBSD: human.h,v 1.2 2006/05/14 06:38:04 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -50,6 +50,7 @@ class BOARD;
class HUMAN : public PLAYER {
public:
HUMAN(const char c);
+ virtual ~HUMAN() {}
// Return move in y, x, and dir
void play(const BOARD& b, size_t& y, size_t& x, int& dir);
private: