Slightly simpeler version of erasing a string.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2103
This commit is contained in:
parent
bdd7b715d0
commit
7711206341
1 changed files with 3 additions and 3 deletions
|
@ -16,6 +16,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: messages.cpp,v 1.16 2005-02-03 10:17:44 qbix79 Exp $ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -56,9 +58,7 @@ void MSG_Replace(const char * _name, const char* _val) {
|
|||
/* Find the message */
|
||||
for(itmb tel=Lang.begin();tel!=Lang.end();tel++) {
|
||||
if((*tel).name==_name) {
|
||||
itmb teln=tel;
|
||||
teln++;
|
||||
Lang.erase(tel,teln);
|
||||
Lang.erase(tel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue