From 77e09b43907d42e042950261ce4d3727a7b27101 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 7 Oct 2015 21:25:29 +0300 Subject: [PATCH] change char print to int print --- LuaEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaEngine.cpp b/LuaEngine.cpp index 163e168..990ea36 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -1193,7 +1193,7 @@ int Eluna::Register(lua_State* L, uint8 regtype, uint32 entry, uint64 guid, uint } luaL_unref(L, LUA_REGISTRYINDEX, functionRef); std::ostringstream oss; - oss << "regtype " << regtype << ", event " << event_id << ", entry " << entry << ", guid " << guid << ", instance " << instanceId; + oss << "regtype " << static_cast(regtype) << ", event " << event_id << ", entry " << entry << ", guid " << guid << ", instance " << instanceId; luaL_error(L, "Unknown event type (%s)", oss.str().c_str()); return 0; }