diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 08e0a8eb..85c2e7eb 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -546,7 +546,7 @@ void editorclass::clearscriptbuffer() void editorclass::removeline(int t) { //Remove line t from the script - if(sblength>0) + if(sblength>1) { if(sblength==t) { @@ -5387,4 +5387,4 @@ void editorinput( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, enti } } -#endif /* NO_CUSTOM_LEVELS */ \ No newline at end of file +#endif /* NO_CUSTOM_LEVELS */