Skip to content

Commit

Permalink
Fix client crashing when entity has an empty name. (Thanks RandomPerson)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Apr 29, 2016
1 parent 73c84ac commit afe2d05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ClassicalSharp/Entities/Player.cs
Expand Up @@ -57,6 +57,7 @@ public abstract partial class Player : Entity {
}

protected void DrawName() {
if( nameTex.ID == -1 ) return;
IGraphicsApi api = game.Graphics;
api.BindTexture( nameTex.ID );
Vector3 pos = Position; pos.Y += Model.NameYOffset;
Expand Down

0 comments on commit afe2d05

Please sign in to comment.