diff options
author | Max Horn | 2006-05-24 20:21:45 +0000 |
---|---|---|
committer | Max Horn | 2006-05-24 20:21:45 +0000 |
commit | 30b368643e24c1733a99bb52a68a3acb086fc069 (patch) | |
tree | 544f261e38b269d69324f92710918f124e501e85 | |
parent | 4a583216fbfd7eee2197bac249c3f62007c2d4e4 (diff) | |
download | scummvm-rg350-30b368643e24c1733a99bb52a68a3acb086fc069.tar.gz scummvm-rg350-30b368643e24c1733a99bb52a68a3acb086fc069.tar.bz2 scummvm-rg350-30b368643e24c1733a99bb52a68a3acb086fc069.zip |
Fix a const warning
svn-id: r22615
-rw-r--r-- | engines/agi/agi.h | 2 | ||||
-rw-r--r-- | engines/agi/objects.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 853a40f429..a9511c1e8b 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -507,7 +507,7 @@ int show_objects(void); int load_objects(const char *fname); int alloc_objects(int); void unload_objects(void); -char *object_name(unsigned int); +const char *object_name(unsigned int); int object_get_location(unsigned int); void object_set_location(unsigned int, int); diff --git a/engines/agi/objects.cpp b/engines/agi/objects.cpp index a381910ac6..520aafd9e1 100644 --- a/engines/agi/objects.cpp +++ b/engines/agi/objects.cpp @@ -149,7 +149,7 @@ int object_get_location(unsigned int n) { return objects[n].location; } -char *object_name(unsigned int n) { +const char *object_name(unsigned int n) { if (n >= game.num_objects) { report("Error: Can't access object %d.\n", n); return ""; |