summaryrefslogtreecommitdiff
path: root/Dalos/Dalos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Dalos/Dalos.cc')
-rw-r--r--Dalos/Dalos.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc
index bbfdadf..b6e6a75 100644
--- a/Dalos/Dalos.cc
+++ b/Dalos/Dalos.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Dalos.cc,v 1.13 2004-12-27 18:46:43 pixel Exp $ */
+/* $Id: Dalos.cc,v 1.14 2004-12-29 01:58:33 pixel Exp $ */
#include <SDL.h>
#include <SDL_thread.h>
@@ -113,7 +113,6 @@ static void lua_hook(lua_State * _L, lua_Debug * ar) {
void start_lua() {
Lua * L = new threaded_Lua();
- Buffer built;
bool use_builtin_cdtool = false;
int i;
@@ -145,10 +144,9 @@ void start_lua() {
use_builtin_cdtool = true;
}
- if (use_builtin_cdtool) {
- for (i = 0; i < cd_tool_lua_size; i++) {
- built.writeU8(cd_tool_lua[i]);
- }
+ if (use_builtin_cdtool) {
+ Buffer built;
+ built.write(cd_tool_lua, cd_tool_lua_size);
try {
L->load(&built);
}