summaryrefslogtreecommitdiff
path: root/lib/luacd.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2003-12-14 21:14:07 +0000
committerpixel <pixel>2003-12-14 21:14:07 +0000
commit83473b5e976c94eb1692e8d35d77b61cf57c97f9 (patch)
tree2b2703f65ee75beeb25ca5316b23d05fab042140 /lib/luacd.cpp
parentd6214b0f60cb6c8386723717159b9212b1d55174 (diff)
Fixing things...
Diffstat (limited to 'lib/luacd.cpp')
-rw-r--r--lib/luacd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/luacd.cpp b/lib/luacd.cpp
index 0e10af1..471c8a2 100644
--- a/lib/luacd.cpp
+++ b/lib/luacd.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: luacd.cpp,v 1.6 2003-12-12 12:45:20 pixel Exp $ */
+/* $Id: luacd.cpp,v 1.7 2003-12-14 21:14:08 pixel Exp $ */
#include "luacd.h"
@@ -860,7 +860,7 @@ void LuaPVD::pushstatics(Lua * L) throw (GeneralException) {
}
int sLua_PVD::PVD_proceed(Lua * L, int n, PVD * pvd, int caller) {
- int r = 0, key_i, value_i;
+ int r = 0, key_i = 0, value_i;
String key_s, value_s;
cddate * value_date;
bool invalid = false, keyisstring;
@@ -870,9 +870,9 @@ int sLua_PVD::PVD_proceed(Lua * L, int n, PVD * pvd, int caller) {
key_i = L->tonumber(2);
} else {
keyisstring = true;
- key_s = L->tonumber(2);
+ key_s = L->tostring(2);
}
-
+
switch (caller) {
case PVD_INDEX:
r = 1;